Re: Bug when settings AutoCommit?



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.

.



Relevant Pages

  • Confused by salt
    ... I hope someone can help clear my confusion. ... time back that used a hash function to store a password. ... advised me that I really ought to use a salt with this in order to add ...
    (sci.crypt)
  • Re: listview problem....
    ... controls don't allow keys that start with a number (to prevent confusion ... People often want to store a number as a key. ... For some reason I must have thought that ...
    (microsoft.public.vb.general.discussion)
  • Re: Need VB code for add sequential records to table
    ... If the alpha part of the ... > "number" is always the same then there's no need to store it. ... BTW I ... > wouldn't user "Number" as a field name as it may cause confusion when you ...
    (microsoft.public.access.formscoding)
  • Re: Tuesday Morning ...
    ... To ward off any confusion, ... Tuesday Morning is a store. ... Whoo hoo! ... Just another reason to vote *before* I go to work - get by ...
    (rec.food.cooking)