summaryrefslogtreecommitdiff
path: root/ext/pgsql/pgsql.c
diff options
context:
space:
mode:
authorDerick Rethans <derick@php.net>2005-04-13 21:48:33 +0000
committerDerick Rethans <derick@php.net>2005-04-13 21:48:33 +0000
commitcba30657d94f7490853cd08c41b3e6594c603bcd (patch)
tree931fad1e991adc2f6ef75140fd564857cab3f6ac /ext/pgsql/pgsql.c
parent36d13eb7c9207ff9050a90b72fae9630479c5fc2 (diff)
downloadphp-git-cba30657d94f7490853cd08c41b3e6594c603bcd.tar.gz
- MFH43: Fixed bug #32699 (pg_affected_rows() was defined when it was not
available).
Diffstat (limited to 'ext/pgsql/pgsql.c')
-rw-r--r--ext/pgsql/pgsql.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c
index 37402cd06a..fd9b58dec8 100644
--- a/ext/pgsql/pgsql.c
+++ b/ext/pgsql/pgsql.c
@@ -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 */