derick          Wed Apr 13 17:48:33 2005 EDT

  Modified files:              
    /php-src/ext/pgsql  pgsql.c php_pgsql.h 
  Log:
  - MFH43: Fixed bug #32699 (pg_affected_rows() was defined when it was not
    available).
  
  
http://cvs.php.net/diff.php/php-src/ext/pgsql/pgsql.c?r1=1.322&r2=1.323&ty=u
Index: php-src/ext/pgsql/pgsql.c
diff -u php-src/ext/pgsql/pgsql.c:1.322 php-src/ext/pgsql/pgsql.c:1.323
--- php-src/ext/pgsql/pgsql.c:1.322     Fri Mar 25 01:26:30 2005
+++ php-src/ext/pgsql/pgsql.c   Wed Apr 13 17:48:33 2005
@@ -20,7 +20,7 @@
    +----------------------------------------------------------------------+
  */
  
-/* $Id: pgsql.c,v 1.322 2005/03/25 06:26:30 chriskl Exp $ */
+/* $Id: pgsql.c,v 1.323 2005/04/13 21:48:33 derick Exp $ */
 
 #include <stdlib.h>
 
@@ -127,7 +127,9 @@
        PHP_FE(pg_fetch_array,  NULL)
        PHP_FE(pg_fetch_object, NULL)
        PHP_FE(pg_fetch_all,    NULL)
+#if HAVE_PQCMDTUPLES
        PHP_FE(pg_affected_rows,NULL)
+#endif
        PHP_FE(pg_get_result,   NULL)
        PHP_FE(pg_result_seek,  NULL)
        PHP_FE(pg_result_status,NULL)
@@ -1586,6 +1588,7 @@
 }
 /* }}} */
 
+#if HAVE_PQCMDTUPLES
 /* {{{ proto int pg_affected_rows(resource result)
    Returns the number of affected tuples */
 PHP_FUNCTION(pg_affected_rows)
@@ -1593,6 +1596,7 @@
        
php_pgsql_get_result_info(INTERNAL_FUNCTION_PARAM_PASSTHRU,PHP_PG_CMD_TUPLES);
 }
 /* }}} */
+#endif
 
 /* {{{ proto string pg_last_notice(resource connection)
    Returns the last notice set by the backend */
http://cvs.php.net/diff.php/php-src/ext/pgsql/php_pgsql.h?r1=1.70&r2=1.71&ty=u
Index: php-src/ext/pgsql/php_pgsql.h
diff -u php-src/ext/pgsql/php_pgsql.h:1.70 php-src/ext/pgsql/php_pgsql.h:1.71
--- php-src/ext/pgsql/php_pgsql.h:1.70  Tue Mar 22 03:51:22 2005
+++ php-src/ext/pgsql/php_pgsql.h       Wed Apr 13 17:48:33 2005
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
  */
  
-/* $Id: php_pgsql.h,v 1.70 2005/03/22 08:51:22 chriskl Exp $ */
+/* $Id: php_pgsql.h,v 1.71 2005/04/13 21:48:33 derick Exp $ */
 
 #ifndef PHP_PGSQL_H
 #define PHP_PGSQL_H
@@ -107,7 +107,9 @@
 PHP_FUNCTION(pg_fetch_result);
 PHP_FUNCTION(pg_fetch_row);
 PHP_FUNCTION(pg_fetch_all);
+#if HAVE_PQCMDTUPLES
 PHP_FUNCTION(pg_affected_rows);
+#endif
 PHP_FUNCTION(pg_get_result);
 PHP_FUNCTION(pg_result_seek);
 PHP_FUNCTION(pg_result_status);

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to