]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_pgsql] Add support for postgresql 14
authorshaunjstokes <shaun@sysconfig.cloud>
Tue, 26 Oct 2021 16:25:14 +0000 (18:25 +0200)
committerGitHub <noreply@github.com>
Tue, 26 Oct 2021 16:25:14 +0000 (19:25 +0300)
src/mod/databases/mod_pgsql/mod_pgsql.c

index 8c24cf9fce7b62cdd4a87da6298b7665fb6f6c51..b638a4feae91dfab4b6d4f8ed2b2625856e0b79f 100644 (file)
@@ -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: