Re: PEAR DB: cannot use more than one database connection

From: Date: Tue, 16 Oct 2001 22:28:07 +0000
Subject: Re: PEAR DB: cannot use more than one database connection
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-394@lists.php.net to get a copy of this message
I can't reproduce this. I've PHP-GTk application which handles multiple database connctions a) to different databases b) to the same database (inc. mysql) at the same time and the don't interfere each other. If I remember correctly this was a problem with older PHP version, proably before and possible including 4.0.6. I've run a quick test and it works even with some old 4.0.6-dev and a PEAR::DB version back from this time. About 10 mysql and oracle connections and no problem. - Markus On Tue, Oct 16, 2001 at 05:22:27PM +0200, Ferenc Engard wrote : > If I am trying to use more than one connection, then it seems that PEAR > overwrites the first connection's data with the second, at least at the > query time. > > I have an object "A" returned by DB::connect(). I can execute queries > with it as long as I don't create another DB object "B" with > DB::connect. At that point the "A" object's queries return with error, > and from the error message it reveals that it tries to execute the query > in the "B" connection's database! > > Anyway, if I print out the db_mysql object, it shows the right database > name, yet the error message's native code shows that another database is > tried. :( > > What to do? > > Thx: > Circum > > -- > PEAR General Mailing List (http://pear.php.net/) > To unsubscribe, e-mail: pear-general-unsubscribe@lists.php.net > For additional commands, e-mail: pear-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net -- Markus Fischer, http://guru.josefine.at/~mfischer/ EMail: mfischer@guru.josefine.at PGP Public Key: http://guru.josefine.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -All your scripts are belong to Zend-

« previous php.pear.general (#394) next »