]> git.ipfire.org Git - thirdparty/psycopg.git/commit
fix: don't raise error accessing Cursor.description after COPY_OUT
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 2 Mar 2022 00:48:30 +0000 (00:48 +0000)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 2 Mar 2022 02:54:04 +0000 (02:54 +0000)
commit59a1c99aff818a37ba5e53b4adad28670a757bdf
tree379d3a7e201547d604088c42d2b0c1af7bd65b35
parent61c8cfba90375e918bdd17a5b77792bd39c720a8
fix: don't raise error accessing Cursor.description after COPY_OUT

COPY_OUT result advertises the number of columns but not their names (or
types). Use a surrogate name for description (which is more useful than
returning `None`, because at lest it tells how many columns were
emitted).

Close #235.
docs/news.rst
psycopg/psycopg/_column.py
tests/test_copy.py
tests/test_copy_async.py