]> git.ipfire.org Git - thirdparty/psycopg.git/commit
fix(copy): avoid sending copy data if an error is set 1149/head
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Mon, 1 Sep 2025 16:06:43 +0000 (18:06 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Mon, 15 Sep 2025 15:55:18 +0000 (17:55 +0200)
commit783e6601a59100cff9257a73887f56091419d505
tree3dce459b5e5ab662a9ab48ebad634723278d0e11
parenta5e0748e4cdb07937b3a173996a86b684357da17
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