Fix #780
Merge pull request #781 from sjinks/issue-780

'set' results in 'Corrupted statement'