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/php_dbx.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/php_dbx.h')
-rw-r--r-- | ext/dbx/php_dbx.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ext/dbx/php_dbx.h b/ext/dbx/php_dbx.h index 6240b953fc..80300e7402 100644 --- a/ext/dbx/php_dbx.h +++ b/ext/dbx/php_dbx.h @@ -52,18 +52,16 @@ ZEND_FUNCTION(dbx_sort); ZEND_FUNCTION(dbx_cmp_asc); ZEND_FUNCTION(dbx_cmp_desc); -ZEND_FUNCTION(dbx_test); - /* Declare any global variables you may need between the BEGIN and END macros here: */ + /* ZEND_BEGIN_MODULE_GLOBALS(dbx) - int row_count; - int num_rows; ZEND_END_MODULE_GLOBALS(dbx) */ + /* In every function that needs to use variables in php_dbx_globals, do call dbxLS_FETCH(); after declaring other variables used by that function, and always refer to them as dbxG(variable). |