yohgaki Wed Oct 2 22:32:09 2002 EDT
Modified files:
/php4/ext/mysql php_mysql.c
/php4/ext/pgsql pgsql.c php_pgsql.h
Log:
Rename pg_data_seek() to pg_result_seek().
Added mysql_result_seek() which is alias of mysql_data_seek().
Index: php4/ext/mysql/php_mysql.c
diff -u php4/ext/mysql/php_mysql.c:1.161 php4/ext/mysql/php_mysql.c:1.162
--- php4/ext/mysql/php_mysql.c:1.161 Wed Sep 11 17:06:52 2002
+++ php4/ext/mysql/php_mysql.c Wed Oct 2 22:32:09 2002
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_mysql.c,v 1.161 2002/09/11 21:06:52 derick Exp $ */
+/* $Id: php_mysql.c,v 1.162 2002/10/03 02:32:09 yohgaki Exp $ */
/* TODO:
*
@@ -193,6 +193,7 @@
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}
};
/* }}} */
Index: php4/ext/pgsql/pgsql.c
diff -u php4/ext/pgsql/pgsql.c:1.230 php4/ext/pgsql/pgsql.c:1.231
--- php4/ext/pgsql/pgsql.c:1.230 Wed Oct 2 02:30:40 2002
+++ php4/ext/pgsql/pgsql.c Wed Oct 2 22:32:09 2002
@@ -19,7 +19,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: pgsql.c,v 1.230 2002/10/02 06:30:40 yohgaki Exp $ */
+/* $Id: pgsql.c,v 1.231 2002/10/03 02:32:09 yohgaki Exp $ */
#include <stdlib.h>
@@ -100,9 +100,9 @@
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 @@
}
/* }}} */
-/* {{{ 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;
Index: php4/ext/pgsql/php_pgsql.h
diff -u php4/ext/pgsql/php_pgsql.h:1.51 php4/ext/pgsql/php_pgsql.h:1.52
--- php4/ext/pgsql/php_pgsql.h:1.51 Tue Oct 1 23:16:35 2002
+++ php4/ext/pgsql/php_pgsql.h Wed Oct 2 22:32:09 2002
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_pgsql.h,v 1.51 2002/10/02 03:16:35 yohgaki Exp $ */
+/* $Id: php_pgsql.h,v 1.52 2002/10/03 02:32:09 yohgaki Exp $ */
#ifndef PHP_PGSQL_H
#define PHP_PGSQL_H
@@ -83,9 +83,9 @@
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);
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php