From febe0e0caf9e92e773b257f864a86db329d56c7f Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Wed, 13 Apr 2005 22:12:06 +0000 Subject: [PATCH] MFH: disable pg_cmdtuples() too, if there is no pg_affected_rows() --- ext/pgsql/pgsql.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index e16455ff11..6788a49234 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -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) -- 2.50.1