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: pool-3.2.2~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=61dd838d56a7dd7e933f4171e857726b46d2dfda;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 70335cf89..c678b7a8c 100644 --- a/psycopg_c/psycopg_c/_psycopg/generators.pyx +++ b/psycopg_c/psycopg_c/_psycopg/generators.pyx @@ -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