Skip to content

Commit 51784aa

Browse files
mgrojolucydodo
authored andcommitted
Fix erroneous execution of queries containing VACUUM
The DB access has to be released for doing that, as when saving savepoints in lines 155-160. See issue #3723
1 parent 05172ca commit 51784aa

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎src/RunSql.cpp‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,11 @@ bool RunSql::executeNextStatement()
131131
emit confirmSaveBeforePragmaOrVacuum();
132132
if(!queries_left_to_execute.isEmpty())
133133
{
134+
releaseDbAccess();
134135
// Commit all changes
135136
db.releaseAllSavepoints();
137+
savepoint_created = false;
138+
acquireDbAccess();
136139
} else {
137140
// Abort
138141
emit statementErrored(tr("Execution aborted by user"), execute_current_position, execute_current_position + (query_type == PragmaStatement ? 5 : 6));

0 commit comments

Comments
 (0)