My guess would be:

use DBI;
use Apache DBI;

my $persistant_dbh = Apache::DBI->connect(blah, blah, blah);
my $non_persistant_dbh = DBI->connect(blah, blah, blah);

But that's untested and offered with no warranty whatsoever that it will
work.

jeff


*******************************
Jeff Seger
Data Warehouse Engineer
Fairchild Semiconductor
[EMAIL PROTECTED]
*******************************


                                                                                       
                                          
                      Philip Molter                                                    
                                          
                      <[EMAIL PROTECTED]        To:       [EMAIL PROTECTED]            
                                          
                      >                        cc:                                     
                                          
                                               Subject:  Apache::DBI sometimes?        
                                          
                      05/21/2002 01:45                                                 
                                          
                      PM                                                               
                                          
                                                                                       
                                          
                                                                                       
                                          




I have a web application that for various reasons needs some database
connections to be persistent and some not to be.  As far as I can
tell, if I use Apache::DBI, then everything is going to be persistent
under Apache::DBI.  Is there a way to selectively disable the
connection caching with Apache::DBI?

* Philip Molter
* Texas.net Internet
* http://www.texas.net/
* [EMAIL PROTECTED]





Reply via email to