Anthony Baxter has mentioned a number of times that gadfly barfs on strings with embedded newlines. There is a one line patch to this. In sqlgen.py replace charstre = "'[^\n']*'" with charstre = "'[^']*'" Sorry! -- Aaron Watters (and please bring up other issue like this on the gadfly-rdbms list at egroups.com).