>>>>> On Tue, 21 May 2002 12:56:03 -0500, Philip Molter <[EMAIL PROTECTED]> said:

PM> On Tue, May 21, 2002 at 01:43:40PM -0400, [EMAIL PROTECTED] wrote:
PM> : 
PM> : My guess would be:
PM> : 
PM> : use DBI;
PM> : use Apache DBI;
PM> : 
PM> : my $persistant_dbh = Apache::DBI->connect(blah, blah, blah);
PM> : my $non_persistant_dbh = DBI->connect(blah, blah, blah);
PM> : 
PM> : But that's untested and offered with no warranty whatsoever that it will
PM> : work.

PM> That's tested and doesn't work.  The whole point of Apache::DBI is
PM> that it intercepts calls to DBI's connect() method and caches them.

Use ResourcePool module instead of Apache::DBI.

This way DBI->connect still works and can be used to create non
persistant connections. Persistent connection are taken from pool via
ResourcePool.

-- 
Ilya Martynov (http://martynov.org/)

Reply via email to