Skip to content
This repository was archived by the owner on Mar 12, 2020. It is now read-only.

Commit 15aed0f

Browse files
authored
Merge pull request #168 from mtxr/feature/mssql-review-before-after-usage
Add MSSQL support, unify and fix "before" & "after" sql config, review most RDBMS configs
2 parents 439732a + e400a63 commit 15aed0f

File tree

5 files changed

+478
-246
lines changed

5 files changed

+478
-246
lines changed

SQLTools.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ def run():
497497
return
498498

499499
Window().status_message(MESSAGE_RUNNING_CMD)
500-
ST.conn.execute(getSelection(), createOutput(), stream=settings.get('use_streams', False))
500+
ST.conn.execute(getSelection(), createOutput())
501501

502502

503503
class StExecuteAll(WindowCommand):
@@ -509,7 +509,7 @@ def run():
509509

510510
Window().status_message(MESSAGE_RUNNING_CMD)
511511
allText = View().substr(sublime.Region(0, View().size()))
512-
ST.conn.execute(allText, createOutput(), stream=settings.get('use_streams', False))
512+
ST.conn.execute(allText, createOutput())
513513

514514

515515
class StFormat(TextCommand):
@@ -543,8 +543,7 @@ def run():
543543
def cb(index):
544544
if index < 0:
545545
return None
546-
return ST.conn.execute(history.get(index), createOutput(),
547-
stream=settings.get('use_streams', False))
546+
return ST.conn.execute(history.get(index), createOutput())
548547

549548
Window().show_quick_panel(history.all(), cb)
550549

@@ -583,8 +582,7 @@ def cb(index):
583582

584583
alias, query = options[index]
585584
if mode == "run":
586-
ST.conn.execute(query, createOutput(),
587-
stream=settings.get('use_streams', False))
585+
ST.conn.execute(query, createOutput())
588586
elif mode == "insert":
589587
insertContent(query)
590588
else:

0 commit comments

Comments
 (0)