in reply to Re^8: DBI Problem
in thread DBI Problem
"insure session has a value when you use it rather than being possibly unitialized like it is at times now!"
This poses an intersting question
The sub which is the original subject of this thread call executequery twice. The first time executes properly and returns the requested result set. the second call to executequery fails due to $session being out of scope while it was in scope for the first call.
The article links you sent this same scoping subject imply that this is due to a bug in the DBI.pm code. This was reported in 2007 and the later article in 2013. If this is indeed a bug, that is quite a while for it to go unfixed.
The article from 2007 says manual flushing would avoid this issue of going out of scope. I don't understand this problem as I put code in the executequery to check the DBI handle before and after the actual execute and the DBI handle is valid both on the first pass and the second pass when it fails.
Obviously I am no expert in these things and need help understanding what is happening.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^10: DBI Problem
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 huck (Prior) on Oct 01, 2017 at 01:39 UTC | |
| |
by Anonymous Monk on Sep 30, 2017 at 16:41 UTC | |
by poj (Abbot) on Oct 01, 2017 at 16:17 UTC |