FS-10774 - [switch_pgsql] Fix build for PostgreSQL/libpq 10

This commit is contained in:
Italo Rossi 2017-11-06 10:35:36 -03:00
parent 32954c1b91
commit 9d96741f56
1 changed files with 2 additions and 2 deletions

View File

@ -386,7 +386,7 @@ SWITCH_DECLARE(switch_pgsql_status_t) switch_pgsql_next_result_timed(switch_pgsq
*result_out = res; *result_out = res;
res->status = PQresultStatus(res->result); res->status = PQresultStatus(res->result);
switch(res->status) { switch(res->status) {
#if POSTGRESQL_MAJOR_VERSION >= 9 && POSTGRESQL_MINOR_VERSION >= 2 #if (POSTGRESQL_MAJOR_VERSION == 9 && POSTGRESQL_MINOR_VERSION >= 2) || POSTGRESQL_MAJOR_VERSION > 9
case PGRES_SINGLE_TUPLE: case PGRES_SINGLE_TUPLE:
/* Added in PostgreSQL 9.2 */ /* Added in PostgreSQL 9.2 */
#endif #endif
@ -397,7 +397,7 @@ SWITCH_DECLARE(switch_pgsql_status_t) switch_pgsql_next_result_timed(switch_pgsq
res->cols = PQnfields(res->result); res->cols = PQnfields(res->result);
} }
break; break;
#if POSTGRESQL_MAJOR_VERSION >= 9 && POSTGRESQL_MINOR_VERSION >= 1 #if (POSTGRESQL_MAJOR_VERSION == 9 && POSTGRESQL_MINOR_VERSION >= 1) || POSTGRESQL_MAJOR_VERSION > 9
case PGRES_COPY_BOTH: case PGRES_COPY_BOTH:
/* Added in PostgreSQL 9.1 */ /* Added in PostgreSQL 9.1 */
#endif #endif