Skip to content

Commit 1486e06

Browse files
committed
Fix bug where invalid statement locks up execution
Signed-off-by: worksofliam <[email protected]>
1 parent f8acbaa commit 1486e06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/views/results/resultSetPanelProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export class ResultSetPanelProvider implements WebviewViewProvider {
9292
if (message.query) {
9393
if (this.currentQuery) {
9494
// If we get a request for a new query, then we need to close the old one
95-
if (this.currentQuery.getId() !== message.queryId) {
95+
if (this.currentQuery.getId() === undefined || this.currentQuery.getId() !== message.queryId) {
9696
// This is a new query, so we need to clean up the old one
9797
await this.currentQuery.close();
9898
this.currentQuery = undefined;

0 commit comments

Comments
 (0)