Skip to content

Commit 52d4ef5

Browse files
committed
Fix bug with no result set message showing
Signed-off-by: worksofliam <[email protected]>
1 parent 1486e06 commit 52d4ef5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/views/results/html.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,9 +377,9 @@ export function generateScroller(basicSelect: string, parameters: SqlParameter[]
377377
appendRows(data.rows);
378378
}
379379
380-
if (data.rows === undefined && totalRows === 0) {
380+
if (data.rows === undefined || totalRows === 0) {
381381
document.getElementById(messageSpanId).innerText = 'Statement executed with no result set returned. Rows affected: ' + data.update_count;
382-
} else {
382+
} else if (totalRows > 0) {
383383
if (data.executionTime) {
384384
document.getElementById(statusId).innerText = (noMoreRows ? ('Loaded ' + totalRows + ' rows in ' + data.executionTime.toFixed() + 'ms. End of data.') : ('Loaded ' + totalRows + ' rows in ' + data.executionTime.toFixed() + 'ms. More available.')) + ' ' + (updateTable ? 'Updatable.' : '');
385385
}

0 commit comments

Comments
 (0)