cvs: php-src /ext/pgsql pgsql.c
| From: | Antony Dovgal | Date: | Wed, 13 Apr 2005 22:11:39 +0000 |
| Subject: | cvs: php-src /ext/pgsql pgsql.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-31377@lists.php.net to get a copy of this message | ||
tony2001 Wed Apr 13 18:11:39 2005 EDT
Modified files:
/php-src/ext/pgsql pgsql.c
Log:
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.323&r2=1.324&ty=u
Index: php-src/ext/pgsql/pgsql.c
diff -u php-src/ext/pgsql/pgsql.c:1.323 php-src/ext/pgsql/pgsql.c:1.324
--- php-src/ext/pgsql/pgsql.c:1.323 Wed Apr 13 17:48:33 2005
+++ php-src/ext/pgsql/pgsql.c Wed Apr 13 18:11:35 2005
@@ -20,7 +20,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: pgsql.c,v 1.323 2005/04/13 21:48:33 derick Exp $ */
+/* $Id: pgsql.c,v 1.324 2005/04/13 22:11:35 tony2001 Exp $ */
#include <stdlib.h>
@@ -197,7 +197,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)