]> git.ipfire.org Git - thirdparty/psycopg.git/commit
fix: don't clobber an error from the server with a server disconnection
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 8 Jan 2025 00:21:22 +0000 (01:21 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 8 Jan 2025 12:41:56 +0000 (13:41 +0100)
commite5121d95b81f14efb011460c70973966f112c5d5
tree543120cc764c62883fb45711c830b0c2fde16d68
parent1c3cb15493dde7507047f7d334e6e6e9015c275c
fix: don't clobber an error from the server with a server disconnection

The server error is assumed to contain more information, as it is
returned as a result, whereas a communication error caused by a server
disconnection will only make available the error message.

Close #988 (but we need to fix the Cython side too).
docs/news.rst
psycopg/psycopg/generators.py