Bug #13101 Updated: PEAR mysql DB selection problem
| From: | cox@php.net | Date: | Thu, 06 Sep 2001 22:41:33 +0000 |
| Subject: | Bug #13101 Updated: PEAR mysql DB selection problem | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-65290@lists.php.net to get a copy of this message | ||
ID: 13101
Updated by: cox
Reported By: max@blueroo.net
Old Status: Open
Status: Closed
Bug Type: Unknown/Other Function
Operating System: Windows 2000
PHP Version: 4.0.6
New Comment:
fixed in CVS, thanks.
Previous Comments:
------------------------------------------------------------------------
[2001-09-03 01:46:05] max@blueroo.net
Using the MySQL PEAR DB classes, it is not possible to use 2 different databases within the same
script, unless the Hostname and/or password to connect to each database are completely different.
I have implement a fix, which uses mysql_db_query() instead, and DB_mysql now holds the database
name within itsself.
diff output is avaiable at http://www.blueroo.net/pear/DB/mysql030901.diff
However, I am unsure how to handle the detection of 'DB_ERROR_NODBSELECTED' in this
instance
Hope this helps
Max
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=13101&edit=1