]> 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 01:57:04 +0000 (01:57 +0000)
commited6bea3232ae2eb926babd6e0dabc4eaac722bfa
treeb5d500d7227b60875448d3017f345abdbc9314b8
parentc35334c4e5aaa14d8aa80335c6f723914951c6a5
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