]> git.ipfire.org Git - thirdparty/psycopg.git/commit
fix: restore sending a Sync on block exit but not on executemany end
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Tue, 29 Mar 2022 20:03:49 +0000 (22:03 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sat, 2 Apr 2022 23:23:22 +0000 (01:23 +0200)
commitf2e0ab1adfb577cb66b5f6ca20b891af9b7faebf
tree7703e8fecc076c60c1154b9d37b3cce7c3baf765
parent8fc1d2efa8cfb1e28d721e4ac47947b1c8a4df00
fix: restore sending a Sync on block exit but not on executemany end

It was removed a few commits ago, but as Denis suggests, it makes sense
to keep it. Reintroduce it (and test for it), but make sure executemany
doesn't send extra sync.
psycopg/psycopg/connection.py
psycopg/psycopg/connection_async.py
psycopg/psycopg/cursor.py
psycopg/psycopg/cursor_async.py
tests/test_pipeline.py
tests/test_pipeline_async.py