From: Daniele Varrazzo Date: Fri, 4 Nov 2022 22:17:13 +0000 (+0100) Subject: fix(c): drop spurious loop break in pipeline_communicate X-Git-Tag: 3.1.18~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab646b70c82aafe6004064a40a3ba358142999a3;p=thirdparty%2Fpsycopg.git fix(c): drop spurious loop break in pipeline_communicate This makes the Python and the C implementation more similar. The difference was unexpected but apparently harmless. See #431 --- diff --git a/psycopg_c/psycopg_c/_psycopg/generators.pyx b/psycopg_c/psycopg_c/_psycopg/generators.pyx index a51fce5e2..b559153f2 100644 --- a/psycopg_c/psycopg_c/_psycopg/generators.pyx +++ b/psycopg_c/psycopg_c/_psycopg/generators.pyx @@ -240,7 +240,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