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

Commit 7896367

Browse files
committed
Added new mysql auth method
1 parent eddff10 commit 7896367

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

SQLTools.sublime-settings

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@
154154
"options": ["-f", "--table"],
155155
"before": [],
156156
"args": "-h{host} -P{port} -u\"{username}\" -D\"{database}\"",
157-
"args_optional": ["--defaults-extra-file=\"{defaults_extra_file}\"", "--defaults-file=\"{defaults-file}\"", "-p\"{password}\""],
157+
"args_optional": ["--login-path=\"{login-path}\"", "--defaults-extra-file=\"{defaults-extra-file}\"", "-p\"{password}\""],
158158
"queries": {
159159
"desc" : {
160160
"query": "select concat(table_schema, '.', table_name) from information_schema.tables where table_schema = database() order by table_name;",

SQLToolsAPI/Completion.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ def _stripQuotesOnDemand(ident, doStrip=True):
2626
return ident
2727

2828
def _startsWithQuote(ident):
29+
# str.startswith can be matched against a tuple
2930
quotes = ('`', '"')
3031
return ident.startswith(quotes)
3132

SQLToolsAPI/Connection.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,6 @@ def formatOptionalArgument(argument, formatOptions):
213213
try:
214214
formattedArg = argument.format(**formatOptions)
215215
except (KeyError, IndexError):
216-
print("caught exception")
217216
return None
218217

219218
if argument == formattedArg: # string not changed after format

0 commit comments

Comments
 (0)