in reply to Re^9: DBI Problem
in thread DBI Problem
If you pay more attention you will find that it is the first call to executequery that is now failing.
You are running 5.8.8, i think its 5.26.something that is now the bleeding edge, that is a long time for you to not have updated perl and its modules.
it is not a problem with DBI.pm, notice how the error message referrers to CGI::Session::Driver::DBI.pm. And as the warning in the CGI::Session documentation points out it is not as much a bug as it is YOUR fault for letting the database be closed before the flush can be run by the desctuctor.
the destructor for the session variable runs when it goes out of scope and is released. when does that happen? (hint it has nothing to do with execute query, in fact your focus on this being a problem with execute query is misguided.) executequery has nothing to do with $session and $session->flush() should not be in it at all
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^11: DBI Problem
by tultalk (Monk) on Sep 30, 2017 at 14:58 UTC | |
by huck (Prior) on Sep 30, 2017 at 16:13 UTC | |
by tultalk (Monk) on Oct 01, 2017 at 00:47 UTC | |
by huck (Prior) on Oct 01, 2017 at 01:39 UTC | |
by tultalk (Monk) on Oct 01, 2017 at 17:19 UTC | |
by tultalk (Monk) on Oct 01, 2017 at 02:28 UTC | |
by Anonymous Monk on Sep 30, 2017 at 16:41 UTC | |
by poj (Abbot) on Oct 01, 2017 at 16:17 UTC |