]> git.ipfire.org Git - thirdparty/psycopg.git/commit
fix: don't fail assert if fetching without result in pipeline mode
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sat, 2 Apr 2022 01:44:26 +0000 (03:44 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sat, 2 Apr 2022 23:23:22 +0000 (01:23 +0200)
commit2aebd497f225988dc37fa4de397306dbf6c2efd1
tree5b74d44c091eb68e034fb8bc3dc08695e4ac832f
parentddd2115bee01f42c4e1612ca57f9d19f21f2f06d
fix: don't fail assert if fetching without result in pipeline mode

The error can be triggered easily by the user. The condition is handled
just naturally by all the methods calling _fetch_pipeline().
psycopg/psycopg/cursor.py
psycopg/psycopg/cursor_async.py
tests/test_pipeline.py
tests/test_pipeline_async.py