Bug #13101: PEAR mysql DB selection problem

From: Date: Mon, 03 Sep 2001 05:46:05 +0000
Subject: Bug #13101: PEAR mysql DB selection problem
Groups: php.dev 
Request: Send a blank email to php-dev+get-64935@lists.php.net to get a copy of this message
From: max@blueroo.net Operating system: Windows 2000 PHP version: 4.0.6 PHP Bug Type: Unknown/Other Function Bug description: PEAR mysql DB selection problem 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 bug report at: http://bugs.php.net/?id=13101&edit=1

« previous php.dev (#64935) next »