This repository was archived by the owner on Mar 12, 2020. It is now read-only.
File tree 2 files changed +12
-5
lines changed
2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -502,7 +502,8 @@ def run():
502
502
def cb (index ):
503
503
if index < 0 :
504
504
return None
505
- return ST .conn .execute (history .get (index ), createOutput ())
505
+ return ST .conn .execute (history .get (index ), createOutput (),
506
+ stream = settings .get ('use_streams' , False ))
506
507
507
508
Window ().show_quick_panel (history .all (), cb )
508
509
@@ -538,9 +539,14 @@ def cb(index):
538
539
if index < 0 :
539
540
return None
540
541
541
- param2 = createOutput () if mode == "run" else options [index ][0 ]
542
- func = ST .conn .execute if mode == "run" else toNewTab
543
- return func (options [index ][1 ], param2 )
542
+ alias , query = options [index ]
543
+ if mode == "run" :
544
+ ST .conn .execute (query , createOutput (),
545
+ stream = settings .get ('use_streams' , False ))
546
+ else :
547
+ toNewTab (query , alias )
548
+
549
+ return
544
550
545
551
try :
546
552
Window ().show_quick_panel (options , cb )
Original file line number Diff line number Diff line change @@ -61,7 +61,8 @@ def run(self):
61
61
62
62
queryTimerEnd = time .time ()
63
63
# we are done with the output, terminate the process
64
- self .process .terminate ()
64
+ if self .process :
65
+ self .process .terminate ()
65
66
66
67
if 'show_query' in self .options and self .options ['show_query' ]:
67
68
formattedQueryInfo = self ._formatShowQuery (self .query , queryTimerStart , queryTimerEnd )
You can’t perform that action at this time.
0 commit comments