]> git.ipfire.org Git - thirdparty/psycopg.git/commit
fix(copy): avoid sending copy data if an error is set binary-copy
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Mon, 1 Sep 2025 16:06:43 +0000 (18:06 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Mon, 1 Sep 2025 16:06:43 +0000 (18:06 +0200)
commitc8cfb349668dc6e53d40fecf794c5eeeb2b3e1ee
treec1b0c1b814f95f66cd8059ac69c62c46872c15dd
parent2c891a1a3cbd4fd9cfacfa17447fdf0bbea2601a
fix(copy): avoid sending copy data if an error is set

It would result in a partial message. The server seems to do the right
thing anyway, but let's not waste its precious time.
psycopg/psycopg/_copy.py
psycopg/psycopg/_copy_async.py