blob: 543e7f11b7488ca629cb847ff27a4f410ee5c7f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
From 9f26a15220b8b8b09c4debe41fe395d25d4cfeec Mon Sep 17 00:00:00 2001
From: shaunjstokes <shaun@sysconfig.cloud>
Date: Tue, 26 Oct 2021 18:25:14 +0200
Subject: [PATCH] [mod_pgsql] Add support for postgresql 14
---
src/mod/databases/mod_pgsql/mod_pgsql.c | 5 +++++
1 file changed, 5 insertions(+)
--- a/src/mod/databases/mod_pgsql/mod_pgsql.c
+++ b/src/mod/databases/mod_pgsql/mod_pgsql.c
@@ -774,6 +774,11 @@ switch_status_t pgsql_next_result_timed(
case PGRES_COPY_IN:
case PGRES_COMMAND_OK:
break;
+#if POSTGRESQL_MAJOR_VERSION >= 14
+ case PGRES_PIPELINE_ABORTED:
+ case PGRES_PIPELINE_SYNC:
+ break;
+#endif
case PGRES_EMPTY_QUERY:
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Query (%s) returned PGRES_EMPTY_QUERY\n", handle->sql);
case PGRES_BAD_RESPONSE:
|