summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland Walker <walker@pobox.com>2021-01-05 06:46:52 -0500
committerRoland Walker <walker@pobox.com>2021-01-05 06:52:06 -0500
commita2a9a8aeb6da733946b2f4eca4e6bddb84fa24f9 (patch)
treea86cb771eb625862437f3ca88b936fc6ac34b6e5
parent4517f49efdcc167a672bce9fdb922bb7224ce5f5 (diff)
restore working local --socket=<UDS>
-rw-r--r--changelog.md2
-rw-r--r--mycli/AUTHORS1
-rwxr-xr-xmycli/main.py2
3 files changed, 4 insertions, 1 deletions
diff --git a/changelog.md b/changelog.md
index 6c54ef7..eedca52 100644
--- a/changelog.md
+++ b/changelog.md
@@ -19,6 +19,7 @@ Bug Fixes:
* Send "Connecting to socket" message to the standard error.
* Respect empty string for prompt_continuation via `prompt_continuation = ''` in `.myclirc`
* Fix \once -o to overwrite output whole, instead of line-by-line.
+* Restore working local `--socket=<UDS>` (Thanks: [xeron]).
1.22.2
======
@@ -801,3 +802,4 @@ Bug Fixes:
[laixintao]: https://github.com/laixintao
[mtorromeo]: https://github.com/mtorromeo
[mwcm]: https://github.com/mwcm
+[xeron]: https://github.com/xeron
diff --git a/mycli/AUTHORS b/mycli/AUTHORS
index a5e8d68..c111e4e 100644
--- a/mycli/AUTHORS
+++ b/mycli/AUTHORS
@@ -79,6 +79,7 @@ Contributors:
* Morgan Mitchell
* Massimiliano Torromeo
* Roland Walker
+ * xeron
Creator:
--------
diff --git a/mycli/main.py b/mycli/main.py
index 2c54db8..72c7fa7 100755
--- a/mycli/main.py
+++ b/mycli/main.py
@@ -388,7 +388,7 @@ class MyCli(object):
database = database or cnf['database']
# Socket interface not supported for SSH connections
- if port or host or ssh_host or ssh_port:
+ if (port and host) or (ssh_host and ssh_port):
socket = ''
else:
socket = socket or cnf['socket'] or guess_socket_location()