cvs: php-src(PHP_4_3) /ext/pgsql pgsql.c
| From: | Antony Dovgal | Date: | Wed, 13 Apr 2005 22:12:07 +0000 |
| Subject: | cvs: php-src(PHP_4_3) /ext/pgsql pgsql.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-31379@lists.php.net to get a copy of this message | ||
tony2001 Wed Apr 13 18:12:07 2005 EDT
Modified files: (Branch: PHP_4_3)
/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.244.2.37&r2=1.244.2.38&ty=u
Index: php-src/ext/pgsql/pgsql.c
diff -u php-src/ext/pgsql/pgsql.c:1.244.2.37 php-src/ext/pgsql/pgsql.c:1.244.2.38
--- php-src/ext/pgsql/pgsql.c:1.244.2.37 Wed Apr 13 17:27:34 2005
+++ php-src/ext/pgsql/pgsql.c Wed Apr 13 18:12:06 2005
@@ -19,7 +19,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: pgsql.c,v 1.244.2.37 2005/04/13 21:27:34 derick Exp $ */
+/* $Id: pgsql.c,v 1.244.2.38 2005/04/13 22:12:06 tony2001 Exp $ */
#include <stdlib.h>
@@ -163,7 +163,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)