Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(db): prepare and execute queued statements one at a time
Browse files Browse the repository at this point in the history
* Allows for queued preparations to depend on the execution of previous statements
  • Loading branch information
anthonybilinski committed Oct 20, 2019
1 parent 8f44fb6 commit d98fe85
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/persistence/db/rawdatabase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d98fe85

Please sign in to comment.