mirror of
https://github.com/php/php-src.git
synced 2025-08-19 08:49:28 +02:00
Fixed bug #60718 Complie problem with libpq (PostgreSQL 7.3 or less)
This commit is contained in:
parent
fb124764de
commit
8449e0ca89
1 changed files with 4 additions and 0 deletions
|
@ -4807,7 +4807,9 @@ PHP_FUNCTION(pg_get_notify)
|
||||||
#else
|
#else
|
||||||
if (atof(PG_VERSION) >= 9.0) {
|
if (atof(PG_VERSION) >= 9.0) {
|
||||||
#endif
|
#endif
|
||||||
|
#if HAVE_PQPARAMETERSTATUS
|
||||||
add_index_string(return_value, 2, pgsql_notify->extra, 1);
|
add_index_string(return_value, 2, pgsql_notify->extra, 1);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (result_type & PGSQL_ASSOC) {
|
if (result_type & PGSQL_ASSOC) {
|
||||||
|
@ -4818,7 +4820,9 @@ PHP_FUNCTION(pg_get_notify)
|
||||||
#else
|
#else
|
||||||
if (atof(PG_VERSION) >= 9.0) {
|
if (atof(PG_VERSION) >= 9.0) {
|
||||||
#endif
|
#endif
|
||||||
|
#if HAVE_PQPARAMETERSTATUS
|
||||||
add_assoc_string(return_value, "payload", pgsql_notify->extra, 1);
|
add_assoc_string(return_value, "payload", pgsql_notify->extra, 1);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
PQfreemem(pgsql_notify);
|
PQfreemem(pgsql_notify);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue