]> git.ipfire.org Git - thirdparty/psycopg.git/commit
refactor: make PGcancelConn.error_message return bytes
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Mon, 10 Jun 2024 15:42:17 +0000 (17:42 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Thu, 13 Jun 2024 14:04:25 +0000 (16:04 +0200)
commitd1afc0be559b2ce30da6930bc3541a91b0786d13
tree90ae1d1fcf4af14d6bcad2263442b2b5ff01749d
parentde8e0051a55b20a39b34c6799dcbc5bf2fad8366
refactor: make PGcancelConn.error_message return bytes

This is more consistent with PGconn and PGresult.

There doesn't seem to be the need of extending pq.misc.error_message as
we never pass it a PGcancelConn object.

Close #781
psycopg/psycopg/generators.py
psycopg/psycopg/pq/abc.py
psycopg/psycopg/pq/pq_ctypes.py
psycopg_c/psycopg_c/_psycopg/generators.pyx
psycopg_c/psycopg_c/pq/pgcancel.pyx