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:
Martin Kleusberg
2013-07-19 22:13:08 +02:00
parent 16b5be4a8b
commit 427581f51d

View File

@@ -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) )