mirror of
https://github.com/php/php-src.git
synced 2024-12-01 13:54:10 +08:00
- MFH43: Fixed bug #32699 (pg_affected_rows() was defined when it was not
available).
This commit is contained in:
parent
36d13eb7c9
commit
cba30657d9
@ -127,7 +127,9 @@ function_entry pgsql_functions[] = {
|
||||
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 @@ PHP_FUNCTION(pg_num_fields)
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
#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_FUNCTION(pg_affected_rows)
|
||||
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 */
|
||||
|
@ -107,7 +107,9 @@ PHP_FUNCTION(pg_fetch_object);
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user