Re: retrieving cached connections

2006-11-30 Thread Larry Leszczynski
On Thu, 30 Nov 2006, Michael Peters wrote: Maybe you could have Apache::DBI issue a warning if it's being loaded and DBI has already been loaded. Something as simple as the attached patch should work. +# we can only do our magic if DBI isn't already loaded +warn "Apache::DBI must be lo

Re: retrieving cached connections

2006-11-30 Thread Michael Peters
Larry Leszczynski wrote: > > On Wed, 29 Nov 2006, Michael Peters wrote: > >> Maybe you could have Apache::DBI issue a warning if it's being loaded >> and DBI has already been loaded. Something as simple as the attached >> patch should work. >> >> +# we can only do our magic if DBI isn't alr

Re: retrieving cached connections

2006-11-29 Thread Larry Leszczynski
On Wed, 29 Nov 2006, Michael Peters wrote: Maybe you could have Apache::DBI issue a warning if it's being loaded and DBI has already been loaded. Something as simple as the attached patch should work. +# we can only do our magic if DBI isn't already loaded +warn "Apache::DBI must be

Re: retrieving cached connections

2006-11-29 Thread Jonathan
On Nov 29, 2006, at 2:46 PM, Philip M. Gollucci wrote: Michael Peters wrote: +# we can only do our magic if DBI isn't already loaded +warn "Apache::DBI must be loaded after DBI to work correctly"; I like it -- any objects list ? i REALLY like that idea. it solves the problem AND te

Re: retrieving cached connections

2006-11-29 Thread Philip M. Gollucci
Keep it on list -- others have the same question 'trust me' Lev Lvovsky wrote: Philip, not sure if this is possible, but what happens if Apache::DBI is loaded in the correct order the first time, but then afterwards loaded again after DBI has been loaded - does the Perl loader make sure this do

Re: retrieving cached connections

2006-11-29 Thread Philip M. Gollucci
Michael Peters wrote: --- DBI.pm.old 2006-11-29 14:30:56.0 -0500 +++ DBI.pm 2006-11-29 14:32:05.0 -0500 @@ -15,6 +15,10 @@ $modperl::VERSION < 1.99) { require Apache; } + +# we can only do our magic if DBI isn't already loaded +warn "Apach

Re: retrieving cached connections

2006-11-29 Thread Michael Peters
Philip M. Gollucci wrote: > If you can suggest a documentation patch you feel clarify things, I'll > read it over and commit for version 1.06 (sorry about that 1.05 is current) Maybe you could have Apache::DBI issue a warning if it's being loaded and DBI has already been loaded. Something as si

Re: retrieving cached connections

2006-11-29 Thread Philip M. Gollucci
Lev Lvovsky wrote: On Nov 28, 2006, at 11:03 PM, Philip M. Gollucci wrote: is this mod_perl 1 or 2 ? Setting $Apache::DBI::Debug = 2; and watching you're error log file should tell you what its doing. package X; # database our $host = 'mysql.x.y'; our $dsn = "dbi:mysql:db;host=$host"; our $u

Re: retrieving cached connections

2006-11-29 Thread Lev Lvovsky
On Nov 28, 2006, at 11:03 PM, Philip M. Gollucci wrote: is this mod_perl 1 or 2 ? Setting $Apache::DBI::Debug = 2; and watching you're error log file should tell you what its doing. package X; # database our $host = 'mysql.x.y'; our $dsn = "dbi:mysql:db;host=$host"; our $user = 'u'; our $pass

Re: retrieving cached connections

2006-11-28 Thread Philip M. Gollucci
Lev Lvovsky wrote: It looks like from reading the docs, that the startup.pl file can handle specifying more than one user for the purpose of making multiple connections with different database accounts. I'm having a problem in retrieving these cached connections when running the code after se