diff options
author | Marc Boeren <mboeren@php.net> | 2001-04-11 08:14:57 +0000 |
---|---|---|
committer | Marc Boeren <mboeren@php.net> | 2001-04-11 08:14:57 +0000 |
commit | 4532eebc4a916a392bdce386c9adde3cfa855ab9 (patch) | |
tree | 5a83c30e37a3630bebf211b07b63dc1ee9759560 /ext/dbx/dbx_mysql.h | |
parent | 5ee8bfebb422d6a2cd2214d52c689fa2199633a0 (diff) | |
download | php-git-4532eebc4a916a392bdce386c9adde3cfa855ab9.tar.gz |
Added a database member to the dbx_link object. Since e.g. mysql reuses
connections, two or more dbx_link objects may share the connection
identifier. The database name is used in the dbx_query, where it calls
mysql_db_query instead of mysql_query.
This means the database name has to be passed around to all dbx_xxx_query
functions, hence the update on all the files. (Mc)
# Thanks to Christian Rabe for all the input on this issue!
Diffstat (limited to 'ext/dbx/dbx_mysql.h')
-rw-r--r-- | ext/dbx/dbx_mysql.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dbx/dbx_mysql.h b/ext/dbx/dbx_mysql.h index 1f36383cfe..4a3b49aafb 100644 --- a/ext/dbx/dbx_mysql.h +++ b/ext/dbx/dbx_mysql.h @@ -35,7 +35,7 @@ int dbx_mysql_pconnect(zval ** rv, zval ** host, zval ** db, zval ** username, z /*/ returns persistent connection handle as resource on success or 0 as long on failure /*/ int dbx_mysql_close(zval ** rv, zval ** dbx_handle, INTERNAL_FUNCTION_PARAMETERS); /*/ returns 1 as long on success or 0 as long on failure /*/ -int dbx_mysql_query(zval ** rv, zval ** dbx_handle, zval ** sql_statement, INTERNAL_FUNCTION_PARAMETERS); +int dbx_mysql_query(zval ** rv, zval ** dbx_handle, zval ** db_name, zval ** sql_statement, INTERNAL_FUNCTION_PARAMETERS); /*/ returns 1 as long or a result identifier as resource on success or 0 as long on failure /*/ int dbx_mysql_getcolumncount(zval ** rv, zval ** result_handle, INTERNAL_FUNCTION_PARAMETERS); /*/ returns column-count as long on success or 0 as long on failure /*/ |