diff --git a/src/mod/databases/mod_pgsql/mod_pgsql.c b/src/mod/databases/mod_pgsql/mod_pgsql.c index 09d6b32e5c..89fdd710f6 100644 --- a/src/mod/databases/mod_pgsql/mod_pgsql.c +++ b/src/mod/databases/mod_pgsql/mod_pgsql.c @@ -605,6 +605,10 @@ switch_status_t database_handle_exec_string(switch_database_interface_handle_t * #if PG_VERSION_NUM >= 90002 case PGRES_SINGLE_TUPLE: /* Added in PostgreSQL 9.2 */ +#endif +#if PG_VERSION_NUM >= 170000 + case PGRES_TUPLES_CHUNK: + /* Added in PostgreSQL 17 */ #endif case PGRES_COMMAND_OK: case PGRES_TUPLES_OK: @@ -766,6 +770,10 @@ switch_status_t pgsql_next_result_timed(switch_pgsql_handle_t *handle, switch_pg #if PG_VERSION_NUM >= 90002 case PGRES_SINGLE_TUPLE: /* Added in PostgreSQL 9.2 */ +#endif +#if PG_VERSION_NUM >= 170000 + case PGRES_TUPLES_CHUNK: + /* Added in PostgreSQL 17 */ #endif case PGRES_TUPLES_OK: {