Skip to content

Commit 2c1d5c9

Browse files
committed
Change logic to improve handling of rows updated
Signed-off-by: worksofliam <[email protected]>
1 parent 368b1ae commit 2c1d5c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/notebooks/Controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ export class IBMiController {
8787
const results = await query.run();
8888

8989
const table = results.data;
90-
if (table === undefined && results.success && !results.has_results && results.update_count > 0) {
91-
items.push(vscode.NotebookCellOutputItem.text(`Statement executed successfully. ${results.update_count} rows affected.`, `text/markdown`));
90+
if (table === undefined && results.success && !results.has_results) {
91+
items.push(vscode.NotebookCellOutputItem.text(`Statement executed successfully. ${results.update_count ? `${results.update_count} rows affected.` : ``}`, `text/markdown`));
9292
break;
9393
}
9494

0 commit comments

Comments
 (0)