Эх сурвалжийг харах

[notebook] Improve logic to refresh assist on DDL statements

Romain Rigaux 10 жил өмнө
parent
commit
1260d57ece

+ 1 - 1
desktop/libs/notebook/src/notebook/static/notebook/js/notebook.ko.js

@@ -561,7 +561,7 @@
           else if (self.status() == 'available') {
             self.fetchResult(100);
             self.progress(100);
-            if (self.isSqlDialect() && self.getContext().statement().match(/\bALTER\b|\bDROP\b|\bCREATE\b/i)) {
+            if (self.isSqlDialect() && ! self.result.handle().has_result_set) { // DDL
               huePubSub.publish('assist.refresh');
             }
           }