Skip to content

Commit

Permalink
Merge pull request #1151 from fabzzap/main
Browse files Browse the repository at this point in the history
Do not ignore the socket passed with the -S option, even when no port…
  • Loading branch information
amjith authored Mar 25, 2024
2 parents 2f7ea28 + d59cb2a commit 707871a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Bug Fixes:
----------

* Don't install tests.
* Do not ignore the socket passed with the -S option, even when no port is passed
* Fix unexpected exception when using dsn without username & password (Thanks: [Will Wang])
* Let the `--prompt` option act normally with its predefined default value

Expand Down
1 change: 1 addition & 0 deletions mycli/AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Contributors:
* Daniel Black
* Daniel West
* Daniël van Eeden
* Fabrizio Gennari
* François Pietka
* Frederic Aoustin
* Georgy Frolov
Expand Down
1 change: 1 addition & 0 deletions mycli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,7 @@ def connect(self, database='', user='', passwd='', host='', port='',
port = 3306
if not host or host == 'localhost':
socket = (
socket or
cnf['socket'] or
cnf['default_socket'] or
guess_socket_location()
Expand Down

0 comments on commit 707871a

Please sign in to comment.