Re: Bug when settings AutoCommit?
- From: gzaven@xxxxxxxxx (Zaven)
- Date: Tue, 17 Jul 2007 17:02:10 -0000
Notice the funky syntax in the last three lines. Why are the 1s and 0s
inside of the parens of STORE?
That's just the way the DBI trace log works at that trace level.
(I may change that for the next release to reduce the risk of confusion.)
The STORE method on the tied handle hash always returns 1, regardless
of the value stored.
Thanks for the reply Tim, that makes a lot more sense.
Indeed, checking their values immediately after this shows that all
three vars are still set to 1; my changes did not take effect.
So it turns out the bug was mine (big surprise ;) because I was
testing the wrong values after setting them. In fact, the DBI settings
are updated as expected. I agree that changing the printed response
from STORE to something with less chance of confusion would be a good
thing, although admittedly most people would never even wonder about
it, unless their code was broken in a surrounding area, like mine.
.
- References:
- Bug when settings AutoCommit?
- From: Zaven
- Re: Bug when settings AutoCommit?
- From: Tim Bunce
- Bug when settings AutoCommit?
- Prev by Date: Re: float bug? perl 5.8, DBI and oracle 10.2.0
- Next by Date: Re: float bug? perl 5.8, DBI and oracle 10.2.0
- Previous by thread: Re: Bug when settings AutoCommit?
- Next by thread: DBD::ODBC 1.14 released to CPAN
- Index(es):
Relevant Pages
|