From ab646b70c82aafe6004064a40a3ba358142999a3 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Fri, 4 Nov 2022 23:17:13 +0100 Subject: [PATCH] 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 --- psycopg_c/psycopg_c/_psycopg/generators.pyx | 1 - 1 file changed, 1 deletion(-) 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 -- 2.47.2