mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user