]> git.ipfire.org Git - thirdparty/psycopg.git/commit
fix: make sure to pass a port number to getaddrinfo
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 2 Sep 2022 15:30:23 +0000 (16:30 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sun, 4 Sep 2022 09:20:21 +0000 (10:20 +0100)
commita395f70c7e291e482a2a341d039341b036b936c8
tree30b2390510874a512655c7cda8647f0c6a88f34f
parent5b4b9cc8bddb2ef20af03c773bd8c4efc0db7d90
fix: make sure to pass a port number to getaddrinfo

Was passing an empty string by mistake, if no port was specified. Mostly
not a problem, except on some platforms, where it causes an
"unrecognized service" error.

Close #366.
docs/news.rst
psycopg/psycopg/conninfo.py
tests/test_conninfo.py