in reply to Re: CGI::Application not disconnecting from the database?
in thread CGI::Application not disconnecting from the database?

I printed out all of %INC, and there was no Apache::DBI to be found (I am using Apache::Session, but the only other DBI module was DBI.pm itself). I added the following before and after the disconnect call:
$self->param('dbh')->ping()
It returned 1 both before and after. :( Any ideas?

Replies are listed 'Best First'.
Re: Re: Re: CGI::Application not disconnecting from the database?
by CountZero (Bishop) on May 08, 2003 at 21:03 UTC

    It sure seems that the disconnect-method is ... disconnected.

    On some Apache servers, the mod_perl configuration either contains a direct reference to Apache::DBI in the httpd.conf file or a reference to (e.g.) startup.pl which contains a require Apache::DBI statement.

    I'm not sure if Apache::DBI is require'd in that way, that it shows up in %INC.

    CountZero

    "If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law