[patch] [magic-removal] Do not put multiple SQL statements in one execute() call.
|Reported by:||Malcolm Tredinnick <malcolm@…>||Owned by:||adrian|
|Component:||Database layer (models, ORM)||Version:|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
At least in SQLite (and, from memory, in some other DB-API-comaptible Python wrappers as well), it is not possible to put multiple SQL statements in a single call to execute(). By multiple statements here, I mean things separated by semicolons.
We are currently making this error in the magic-removal branch. The attached patch fixes this.