Re: simpleQuery method causes too many mysql change db commands

From: Date: Thu, 11 Aug 2005 22:56:33 +0000
Subject: Re: simpleQuery method causes too many mysql change db commands
References: 1 2 3 4  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-20384@lists.php.net to get a copy of this message
Justin Patrin wrote:
2) Fix the DB backends in PHP to actually use *seperate* connections for different DBs or to keep track of and switch the DB on its own. Yeah, like this is likely to happen.
actually the reason why DB selects the db before every call is that by default mysql reuses connections to the same host. this would mean that two instances of DB, or even one instance of DB and other direct calls to the mysql ext could lead to some serious side effects. however ext/mysql now has support for the new link option. this is actually supported by PEAR::DB, so maybe the selecting of the database should be disabled if the new link option is set. changing of any aspect of the dsn is not supported in PEAR::DB afaik anyways. you may want to open a feature request on this, as daniel doesnt read this list. regards, Lukas

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