File: 0004-wrap-pipeline-in-PG_VERSION_NUM-140000.patch

package info (click to toggle)
kore 4.1.0-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 2,808 kB
  • sloc: ansic: 27,141; makefile: 323; sh: 250; python: 138; cpp: 34
file content (23 lines) | stat: -rw-r--r-- 573 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Joris Vink <joris@coders.se>
Date: Wed, 27 Oct 2021 22:39:29 +0200
Subject: wrap pipeline in PG_VERSION_NUM >= 140000

---
 src/pgsql.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/pgsql.c b/src/pgsql.c
index 9177528..55c7fbf 100644
--- a/src/pgsql.c
+++ b/src/pgsql.c
@@ -772,8 +772,10 @@ pgsql_read_result(struct kore_pgsql *pgsql)
 	}
 
 	switch (PQresultStatus(pgsql->result)) {
+#if PG_VERSION_NUM >= 140000
 	case PGRES_PIPELINE_SYNC:
 	case PGRES_PIPELINE_ABORTED:
+#endif
 	case PGRES_COPY_OUT:
 	case PGRES_COPY_IN:
 	case PGRES_NONFATAL_ERROR: