]> git.ipfire.org Git - thirdparty/psycopg.git/commit
fix(copy): don't create a row maker on copy
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Thu, 15 Dec 2022 11:03:44 +0000 (11:03 +0000)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Thu, 15 Dec 2022 11:03:44 +0000 (11:03 +0000)
commit1308dd0dd7d32da768cbc024d29e25c0e0fc1c4b
treea07cffc84fd4230582ad7b72d07c36c5fb786973
parent920c2f40e358695ac1ecca39d47baa7884e44ea4
fix(copy): don't create a row maker on copy

A COPY_OUT result has columns, but no names for the columns. This case
must be handled in cur.description (see #235) but we don't need to
handle it in copy. If we did handle it in copy, we would need a column
name fallback, which we forgot to handle, hence the problem in #460.

Close #460.
docs/news.rst
psycopg/psycopg/rows.py
tests/test_copy.py
tests/test_copy_async.py