in reply to Re^7: DBI Problem
in thread DBI Problem
Session is given a value here $session = OpenSession($dbh,$tsid);
Your use of globally scoped lexical variables has gotten you in trouble before too, when you dont know what you are doing it is a bad practice.
i suspect the flush belongs in OpenSession
Again i ask where in ExecuteQuery is session given a value?, Pay attention now, HOW DO YOU INSURE SESSION HAS A VALUE WHEN ExecuteQuery IS CALLED so you can use it to call the flush method?
It should be my $session = OpenSession($dbh,$tsid); and my $session = new CGI::Session("driver:MySQL", $sid, {Handle=>$dbh, LockHandle=>$dbh}); to insure session has a value when you use it rather than being possibly unitialized like it is at times now!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^9: DBI Problem
by tultalk (Monk) on Sep 30, 2017 at 12:11 UTC | |
by huck (Prior) on Sep 30, 2017 at 13:13 UTC | |
|
Re^9: DBI Problem
by tultalk (Monk) on Sep 30, 2017 at 13:09 UTC | |
by huck (Prior) on Sep 30, 2017 at 13:39 UTC | |
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 Anonymous Monk on Sep 30, 2017 at 16:41 UTC | |
by poj (Abbot) on Oct 01, 2017 at 16:17 UTC |