Skip to content

Commit 55d8905

Browse files
committed
Fixed SQL log containing incorrect lines when executing the current line
- related to #768 - introduced by 649b179
1 parent 7d97688 commit 55d8905

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/MainWindow.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -859,8 +859,9 @@ void MainWindow::executeQuery()
859859
int cursor_line, cursor_index;
860860
sqlWidget->getEditor()->getCursorPosition(&cursor_line, &cursor_index);
861861
execution_start_line = cursor_line;
862-
while(cursor_line < sqlWidget->getEditor()->lines())
863-
query += sqlWidget->getEditor()->text(cursor_line++);
862+
863+
query = sqlWidget->getEditor()->text(cursor_line);
864+
864865
singleStep = true;
865866
} else {
866867
// if a part of the query is selected, we will only execute this part

0 commit comments

Comments
 (0)