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.2.0~79 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=38278cb1cfc780b6c9f7b1834c73d4278a321248;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