diff options
author | Antony Dovgal <tony2001@php.net> | 2005-04-13 22:11:35 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2005-04-13 22:11:35 +0000 |
commit | 2c511712f77f729000f8f58ff7d0f5c3661c5346 (patch) | |
tree | e6f19d3e5ceb0ff43c474047801bbe01d588920a | |
parent | cba30657d94f7490853cd08c41b3e6594c603bcd (diff) | |
download | php-git-2c511712f77f729000f8f58ff7d0f5c3661c5346.tar.gz |
disable pg_cmdtuples() too, if there is no pg_affected_rows()
-rw-r--r-- | ext/pgsql/pgsql.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index fd9b58dec8..bbcbd2362c 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -197,7 +197,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) |