From: Daniele Varrazzo Date: Fri, 14 Jan 2022 00:48:12 +0000 (+0100) Subject: Fix definitions for pipeline replacements macros X-Git-Tag: pool-3.1~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97071a7ac5fc64992e15df01c808e503d33cc0ca;p=thirdparty%2Fpsycopg.git Fix definitions for pipeline replacements macros The previous definition caused a warning for implicit conversion from void* to int. --- diff --git a/psycopg_c/psycopg_c/pq/libpq.pxd b/psycopg_c/psycopg_c/pq/libpq.pxd index e59552270..b66ca8cd2 100644 --- a/psycopg_c/psycopg_c/pq/libpq.pxd +++ b/psycopg_c/psycopg_c/pq/libpq.pxd @@ -311,10 +311,10 @@ typedef enum { PQ_PIPELINE_ON, PQ_PIPELINE_ABORTED } PGpipelineStatus; -#define PQpipelineStatus(conn) NULL -#define PQenterPipelineMode(conn) NULL -#define PQexitPipelineMode(conn) NULL -#define PQpipelineSync(conn) NULL -#define PQsendFlushRequest(conn) NULL +#define PQpipelineStatus(conn) PQ_PIPELINE_OFF +#define PQenterPipelineMode(conn) 0 +#define PQexitPipelineMode(conn) 1 +#define PQpipelineSync(conn) 0 +#define PQsendFlushRequest(conn) 0 #endif """