]> granicus.if.org Git - php/commitdiff
Fixed bug #60718 Complie problem with libpq (PostgreSQL 7.3 or less)
authorYasuo Ohgaki <yohgaki@ohgaki.net>
Thu, 29 Mar 2012 10:48:58 +0000 (19:48 +0900)
committerYasuo Ohgaki <yohgaki@ohgaki.net>
Thu, 29 Mar 2012 10:48:58 +0000 (19:48 +0900)
ext/pgsql/pgsql.c

index ebc17a39e53da5b3621253c00f44bc7f97737e7a..4a9294464ac8a2012176e715379074334d17a231 100644 (file)
@@ -4807,7 +4807,9 @@ PHP_FUNCTION(pg_get_notify)
 #else 
                if (atof(PG_VERSION) >= 9.0) {
 #endif 
+#if HAVE_PQPARAMETERSTATUS
                        add_index_string(return_value, 2, pgsql_notify->extra, 1);
+#endif
                }
        }
        if (result_type & PGSQL_ASSOC) {
@@ -4818,7 +4820,9 @@ PHP_FUNCTION(pg_get_notify)
 #else 
                if (atof(PG_VERSION) >= 9.0) {
 #endif 
+#if HAVE_PQPARAMETERSTATUS
                        add_assoc_string(return_value, "payload", pgsql_notify->extra, 1);
+#endif
                }
        }
        PQfreemem(pgsql_notify);