mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 11:00:44 -06:00
set a restore point if a non SELECT was executed
This commit is contained in:
@@ -777,7 +777,7 @@ void MainWindow::executeQuery()
|
||||
&vm, &tail);
|
||||
if (err == SQLITE_OK){
|
||||
if( !queryPart.trimmed().startsWith("SELECT", Qt::CaseInsensitive))
|
||||
db.setDirty(true);
|
||||
db.setRestorePoint();
|
||||
int rownum = 0;
|
||||
bool mustCreateColumns = true;
|
||||
while ( sqlite3_step(vm) == SQLITE_ROW ){
|
||||
|
||||
Reference in New Issue
Block a user