Re: simpleQuery method causes too many mysql change db commands

From: Date: Fri, 12 Aug 2005 00:32:49 +0000
Subject: Re: simpleQuery method causes too many mysql change db commands
References: 1 2 3 4 5  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-20387@lists.php.net to get a copy of this message
On 8/11/05, Lukas Smith <lsmith@php.net> wrote: > 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. I'm fully aware of these problems. I was referring to fixing the actual PHP extensions, not anything in DB itself (at least not for this option). > 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. > This might work...assuming this actually works. -- Justin Patrin

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