[mod_pgsql] Add support for postgresql 14

This commit is contained in:
shaunjstokes 2021-10-26 18:25:14 +02:00 committed by GitHub
parent 3decbb830c
commit 9f26a15220
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View 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: