MainWindow: Fix possible endless loop in executeQuery

Don't get into an endless loop when there is a syntax error in the SQL
statement to execute.
This commit is contained in:
Martin Kleusberg
2013-03-19 19:46:56 +01:00
parent e22bfb71e6
commit 1eaa112a27

View File

@@ -765,7 +765,7 @@ void MainWindow::executeQuery()
queryResultListModel->setVerticalHeaderLabels(QStringList());
QString queryPart = tail;
int sql3status = sqlite3_prepare_v2(db._db,tail,utf8Query.length(),
sql3status = sqlite3_prepare_v2(db._db,tail,utf8Query.length(),
&vm, &tail);
if (sql3status == SQLITE_OK){
int rownum = 0;