Pārlūkot izejas kodu

[editor] Fetch next multi query when previous query was DDL

Romain Rigaux 10 gadi atpakaļ
vecāks
revīzija
7ed88a14ec

+ 5 - 0
desktop/libs/notebook/src/notebook/static/notebook/js/notebook.ko.js

@@ -563,6 +563,11 @@
             self.progress(100);
             if (self.isSqlDialect() && ! self.result.handle().has_result_set) { // DDL
               huePubSub.publish('assist.refresh');
+              if (self.result.handle().has_more) {
+                setTimeout(function () {
+                  self.execute(); // Execute next, need to wait as we disabled fast click
+                }, 1000);
+              }
             }
           }
           else if (self.status() == 'success') {