talexb has asked for the wisdom of the Perl Monks concerning the following question:
This results in ause base 'CGI::Application'; use strict; sub setup { my $Self = shift; ... $Self->param ( 'mydbh' => DBI->connect ( ... ) ); }
error in the web log. I can see why it's complaining -- I've allocated a database handle that appears to be going out of scope with the appropriate disconnect. Of course, it only appears to be going out of scope .. I'm saving the handle in the Web Application object and will use it properly (including disconnecting at the appropriate time).Issuing rollback() for database handle being DESTROY'd without explici +t disconnect()
How can I soothe Perl and/or correct my mistake? Help would be appreciated.
--t. alex
"Excellent. Release the hounds." -- Monty Burns.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBI handle destroyed during CGI::Application setup
by rob_au (Abbot) on Jan 07, 2002 at 04:26 UTC | |
by talexb (Chancellor) on Jan 07, 2002 at 04:36 UTC | |
by rob_au (Abbot) on Jan 07, 2002 at 04:48 UTC | |
by talexb (Chancellor) on Jan 07, 2002 at 21:27 UTC | |
by Anonymous Monk on Jan 08, 2002 at 05:27 UTC | |
|
(jeffa) Re: DBI handle destroyed during CGI::Application setup
by jeffa (Bishop) on Jan 07, 2002 at 03:43 UTC | |
by rob_au (Abbot) on Jan 07, 2002 at 04:31 UTC | |
by talexb (Chancellor) on Jan 07, 2002 at 04:19 UTC |