]> git.ipfire.org Git - thirdparty/psycopg.git/commit
Allow reading needs_password, used_password on broken connections
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 23 Apr 2021 00:30:19 +0000 (01:30 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 23 Apr 2021 00:30:19 +0000 (01:30 +0100)
commit98f4910355dc23ad2a6b045cb9e3395a834a2f1f
tree779b7299995349fab4e52486a72328764c8d701a
parentc85f68ae230d095a66f95aa01789b5346d2441fc
Allow reading needs_password, used_password on broken connections

It makes sense (especially the former: it is used to detect if a
password was needed). However they are not that easy to use because a
failed connection attempt will throw an exception. For this reason they
are not added to ConnectionInfo.
psycopg3/psycopg3/pq/pq_ctypes.py
psycopg3_c/psycopg3_c/pq/pgconn.pyx
tests/pq/test_pgconn.py