Преглед на файлове

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

Romain Rigaux преди 10 години
родител
ревизия
7ed88a14ec
променени са 1 файла, в които са добавени 5 реда и са изтрити 0 реда
  1. 5 0
      desktop/libs/notebook/src/notebook/static/notebook/js/notebook.ko.js

+ 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') {