mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fix(db): prepare and execute queued statements one at a time
* Allows for queued preparations to depend on the execution of previous statements
This commit is contained in:
parent
8f44fb6355
commit
d98fe85a58
|
@ -744,10 +744,9 @@ void RawDatabase::process()
|
|||
}
|
||||
curParam += nParams;
|
||||
} while (compileTail != query.query.data() + query.query.size());
|
||||
}
|
||||
|
||||
// Execute each statement of each query of our transaction
|
||||
for (Query& query : trans.queries) {
|
||||
|
||||
// Execute each statement of each query of our transaction
|
||||
for (sqlite3_stmt* stmt : query.statements) {
|
||||
int column_count = sqlite3_column_count(stmt);
|
||||
int result;
|
||||
|
|
Loading…
Reference in New Issue
Block a user