From: shaunjstokes Date: Tue, 26 Oct 2021 16:25:14 +0000 (+0200) Subject: [mod_pgsql] Add support for postgresql 14 X-Git-Tag: v1.10.8^2~123 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f26a15220b8b8b09c4debe41fe395d25d4cfeec;p=thirdparty%2Ffreeswitch.git [mod_pgsql] Add support for postgresql 14 --- diff --git a/src/mod/databases/mod_pgsql/mod_pgsql.c b/src/mod/databases/mod_pgsql/mod_pgsql.c index 8c24cf9fce..b638a4feae 100644 --- 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(switch_pgsql_handle_t *handle, switch_pg 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: