On Mon Jan 14 11:01:56 2013, jeff.holt@method-r.com wrote:
Show quoted text> Yes, Martin. I'd be happy to try your patch and report back with what I
> find. I read your post and agree that your second "hack" is a better
> solution than your first. At the moment, I can't think of anything else to
> try so if it works for me then I would endorse it.
The only problem for me is my second patch could adversely affect anyone
who was expecting a real sth although in fairness it would have failed
later in the execute call calling OCIAttrGet for PARAM_COUNT (so I doubt
anyone is doing that). Someone here obviously spotted this and put a
false select 1 from dual into the proc where it could not return a
cursor which I thought was really naff (and as you state would not work
if the proc raised an error anyway). I've emailed it to dbi-dev and
await responses (although I note Tim is away for a week). If I emailed
you a tarball of the current subversion trunk with patch applied would
this be ok for you?
Ragarding the fetch issue you found in the finish/destroy method, I
think this would disappear with patch 2 as you'd never have created a
sth in the first place. I did not write the code you refer to and don't
really get it so yet another reason why patch 2 is probably better.
I can email you a patched ditrib to try later tonigh or tomorrow.
Martin
Show quoted text>
> On Sat, Jan 12, 2013 at 11:35 AM, Martin J Evans via RT <
> bug-DBD-Oracle@rt.cpan.org> wrote:
>
macro
Show quoted text> > > for OCIStmtFetch2, is executed.
> > >
> > > I'm pretty sure that it's the sys_refcursor handle that's being
cleaned
Show quoted text> > > up when the second $sth0->execute is executed.
> > >
> > > I commented out the "buggy" call to OCIStmtFetch_log_stat and the
> > > subsequent 'if'. This had no effect on existing tests (which is
odd) and
Show quoted text> > > it did fix my bug. I'll admit that there were some skipped tests
> > > (10general, 23wide*, 30long, 60reauth) but those don't appear to be
> > > exercising this now-commented code.
> > >
> > > I'm having difficulty understanding why this small bit of code was
added
Show quoted text> > > without a test to cover it. It seems to be in a critical path and
that's
Show quoted text> > > why I consider it odd that commenting it out didn't cause any tests to
> > fail.
> > >
> > > At any rate, I don't like the fact that the fetch is in this function
> > > but I've a horrible headache and can't stomach the blame to find
out why
Show quoted text> > > it's there. Can someone enlighten me, please?
> >
> > You may be interested in the dbi-dev discussion regarding an issue I
> > found very similar to the one you found. You can read it at
> >
http://www.mail-archive.com/dbi-dev@perl.org/msg06963.html
> >
> > I'd be interested in you trying my patch to fix my problem as I think
> > the problem you identified is very similar. If you are in a position to
> > do that please let me know and I'll provide you with the details. If it
> > does not fix your issue I am happy to work on that too.
> >
> > Martin
> > --
> > Martin J. Evans
> > Wetherby, UK
> >
--
Martin J. Evans
Wetherby, UK