GNOME Bugzilla – Bug 140113
sqlite backend splits commands wrong
Last modified: 2006-08-02 22:50:18 UTC
The sqlite backend splits commands by using g_strsplit (sql, ";", 0); This is wrong because a semicolon might be a valid character inside an sql command. Examples include escaped strings or create trigger commands. The attached patch fixes this by using the provided sqlite_complete function. Included is a one-liner that ensures the return-value is correct in an error case.
Created attachment 26673 [details] [review] proposed patch
Patch applied to CVS, thanks
*** Bug 337334 has been marked as a duplicate of this bug. ***
Bug 131040 is also related