From: Yasuo Ohgaki Date: Thu, 3 Oct 2002 02:32:09 +0000 (+0000) Subject: Rename pg_data_seek() to pg_result_seek(). X-Git-Tag: php-4.3.0pre1~293 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1b675aa69071438f796c5d23e6fab0cc6951ac68;p=php Rename pg_data_seek() to pg_result_seek(). Added mysql_result_seek() which is alias of mysql_data_seek(). --- diff --git a/ext/mysql/php_mysql.c b/ext/mysql/php_mysql.c index bb58953a93..52be05ff99 100644 --- a/ext/mysql/php_mysql.c +++ b/ext/mysql/php_mysql.c @@ -193,6 +193,7 @@ function_entry mysql_functions[] = { PHP_FALIAS(mysql_dbname, mysql_result, NULL) PHP_FALIAS(mysql_tablename, mysql_result, NULL) PHP_FALIAS(mysql_table_name, mysql_result, NULL) + PHP_FALIAS(mysql_result_seek, mysql_data_seek, NULL) {NULL, NULL, NULL} }; /* }}} */ diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index 0d591fff98..d68bbf6872 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -100,9 +100,9 @@ function_entry pgsql_functions[] = { PHP_FE(pg_fetch_array, NULL) PHP_FE(pg_fetch_object, NULL) PHP_FE(pg_fetch_all, NULL) - PHP_FE(pg_data_seek, NULL) PHP_FE(pg_affected_rows,NULL) PHP_FE(pg_get_result, NULL) + PHP_FE(pg_result_seek, NULL) PHP_FE(pg_result_status,NULL) PHP_FE(pg_free_result, NULL) PHP_FE(pg_last_oid, NULL) @@ -1417,9 +1417,9 @@ PHP_FUNCTION(pg_fetch_all) } /* }}} */ -/* {{{ proto mixed pg_data_seek(resource result, int offset) +/* {{{ proto mixed pg_result_seek(resource result, int offset) Set internal row offset */ -PHP_FUNCTION(pg_data_seek) +PHP_FUNCTION(pg_result_seek) { zval *result; int row; diff --git a/ext/pgsql/php_pgsql.h b/ext/pgsql/php_pgsql.h index 4b00fc3eed..1dea2e120e 100644 --- a/ext/pgsql/php_pgsql.h +++ b/ext/pgsql/php_pgsql.h @@ -83,9 +83,9 @@ PHP_FUNCTION(pg_fetch_object); PHP_FUNCTION(pg_fetch_result); PHP_FUNCTION(pg_fetch_row); PHP_FUNCTION(pg_fetch_all); -PHP_FUNCTION(pg_data_seek); PHP_FUNCTION(pg_affected_rows); PHP_FUNCTION(pg_get_result); +PHP_FUNCTION(pg_result_seek); PHP_FUNCTION(pg_result_status); PHP_FUNCTION(pg_free_result); PHP_FUNCTION(pg_last_oid);