Fix transactions not being ignored when executing SQL (#656)

* Fix transactions not being ignored when executing SQL

* Fix transactions not being ignored when importing from SQL

* Fix Travis build error

* Fix Travis build error
This commit is contained in:
Iulian Onofrei
2016-07-24 14:55:16 +03:00
committed by Justin Clift
parent 3a8fdafdf4
commit d03aef1e35
2 changed files with 9 additions and 3 deletions

View File

@@ -898,6 +898,8 @@ void MainWindow::executeQuery()
if (query.isEmpty())
return;
query = query.remove(QRegExp("^\\s*BEGIN TRANSACTION;|COMMIT;\\s*$"));
//log the query
db.logSQL(query, kLogMsg_User);
sqlite3_stmt *vm;