]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
fix(c): drop spurious loop break in pipeline_communicate
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 4 Nov 2022 22:17:13 +0000 (23:17 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sun, 18 Feb 2024 00:08:40 +0000 (01:08 +0100)
This makes the Python and the C implementation more similar. The
difference was unexpected but apparently harmless. See #431

psycopg_c/psycopg_c/_psycopg/generators.pyx

index 70335cf8995731ea0d156baa8f9026a17ce117dd..c678b7a8ce7e9b53632a2341a711a6ea9c2db25f 100644 (file)
@@ -257,7 +257,6 @@ def pipeline_communicate(
                     r = pq.PGresult._from_ptr(pgres)
                     if status == libpq.PGRES_PIPELINE_SYNC:
                         results.append([r])
-                        break
                     elif (
                         status == libpq.PGRES_COPY_IN
                         or status == libpq.PGRES_COPY_OUT