]> git.ipfire.org Git - thirdparty/psycopg.git/commit
Don't leave the connection ACTIVE on error in COPY_OUT
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 7 Jan 2022 21:06:20 +0000 (22:06 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sat, 8 Jan 2022 00:03:25 +0000 (01:03 +0100)
commitfac39ff6ed5ea1d9fd14789a1471ddfe4c6aa7fd
tree9f9abd158344d6b7faf79e69153168259a27da30
parent2e161324d26363146c5e3dd5e4b77c176838d42c
Don't leave the connection ACTIVE on error in COPY_OUT

Cancel the active COPY operation if the server has not finished sending
the data yet.

Close #203.

Also fix the tests which were based on this broken behaviour. A case of
self-administered Hyrum's law.
docs/news.rst
psycopg/psycopg/copy.py
tests/test_connection.py
tests/test_connection_async.py
tests/test_copy.py
tests/test_copy_async.py
tests/test_transaction.py
tests/test_transaction_async.py