]> granicus.if.org Git - php/commitdiff
MFH: disable pg_cmdtuples() too, if there is no pg_affected_rows()
authorAntony Dovgal <tony2001@php.net>
Wed, 13 Apr 2005 22:12:06 +0000 (22:12 +0000)
committerAntony Dovgal <tony2001@php.net>
Wed, 13 Apr 2005 22:12:06 +0000 (22:12 +0000)
ext/pgsql/pgsql.c

index e16455ff1194e0fe90f4b1f5f862866003299fe0..6788a49234d3ad128ad01a8de2ec3b7fba8dc7b0 100644 (file)
@@ -163,7 +163,9 @@ function_entry pgsql_functions[] = {
        /* aliases for downwards compatibility */
        PHP_FALIAS(pg_exec,          pg_query,          NULL)
        PHP_FALIAS(pg_getlastoid,    pg_last_oid,       NULL)
+#if HAVE_PQCMDTUPLES
        PHP_FALIAS(pg_cmdtuples,         pg_affected_rows,  NULL)
+#endif
        PHP_FALIAS(pg_errormessage,      pg_last_error,     NULL)
        PHP_FALIAS(pg_numrows,           pg_num_rows,       NULL)
        PHP_FALIAS(pg_numfields,         pg_num_fields,     NULL)