php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13101 PEAR mysql DB selection problem
Submitted: 2001-09-03 01:46 UTC Modified: 2001-09-06 18:41 UTC
From: max at blueroo dot net Assigned:
Status: Closed Package: Unknown/Other Function
PHP Version: 4.0.6 OS: Windows 2000
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: max at blueroo dot net
New email:
PHP Version: OS:

 

 [2001-09-03 01:46 UTC] max at blueroo dot 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-09-06 18:41 UTC] cox@php.net
fixed in CVS, thanks.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 20:01:46 2025 UTC