mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-19 10:20:17 -06:00
MainWindow: Don't cancel after one INSERT or the like in SQL tab
When executing multiple INSERT/UPDATE/... statements don't cancel after the first one. Also don't try to load them into the SqliteTableModel class - it won't work and just generates a warning.
This commit is contained in:
@@ -617,7 +617,6 @@ void MainWindow::executeQuery()
|
||||
sqlite3_finalize(vm);
|
||||
switch(sql3status)
|
||||
{
|
||||
case SQLITE_DONE:
|
||||
case SQLITE_ROW:
|
||||
{
|
||||
sqlWidget->getModel()->setQuery(queryPart);
|
||||
@@ -634,6 +633,7 @@ void MainWindow::executeQuery()
|
||||
sql3status = SQLITE_ERROR;
|
||||
}
|
||||
}
|
||||
case SQLITE_DONE:
|
||||
case SQLITE_OK:
|
||||
{
|
||||
if( !queryPart.trimmed().startsWith("SELECT", Qt::CaseInsensitive) )
|
||||
|
||||
Reference in New Issue
Block a user