cvs: php-src(PHP_5_0) /ext/pgsql pgsql.c

From: Date: Wed, 13 Apr 2005 22:11:55 +0000
Subject: cvs: php-src(PHP_5_0) /ext/pgsql pgsql.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-31378@lists.php.net to get a copy of this message
tony2001 Wed Apr 13 18:11:55 2005 EDT Modified files: (Branch: PHP_5_0) /php-src/ext/pgsql pgsql.c Log: MFH: disable pg_cmdtuples() too, if there is no pg_affected_rows() http://cvs.php.net/diff.php/php-src/ext/pgsql/pgsql.c?r1=1.311.2.1&r2=1.311.2.2&ty=u Index: php-src/ext/pgsql/pgsql.c diff -u php-src/ext/pgsql/pgsql.c:1.311.2.1 php-src/ext/pgsql/pgsql.c:1.311.2.2 --- php-src/ext/pgsql/pgsql.c:1.311.2.1 Wed Apr 13 17:46:31 2005 +++ php-src/ext/pgsql/pgsql.c Wed Apr 13 18:11:55 2005 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: pgsql.c,v 1.311.2.1 2005/04/13 21:46:31 derick Exp $ */ +/* $Id: pgsql.c,v 1.311.2.2 2005/04/13 22:11:55 tony2001 Exp $ */ #include <stdlib.h> @@ -168,7 +168,9 @@ /* 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)

« previous php.cvs (#31378) next »