in reply to Re: seeking barebones sqlite example with transaction
in thread seeking barebones sqlite example with transaction

Note that for catching errors with eval like that, you should turn on the RaiseError attribute (upon connect or afterward). (And thanks, I didn't notice the begin_work() method to temporarily turn off AutoCommit before now).
  • Comment on Re^2: seeking barebones sqlite example with transaction

Replies are listed 'Best First'.
Re^3: seeking barebones sqlite example with transaction
by rhesa (Vicar) on Aug 04, 2006 at 22:28 UTC
    Heh, I was about to update my node to that effect. The Transaction section in the DBI docs does mention turning on RaiseError. Strangely enough, it doesn't use the begin_work method, although I think it's a cleaner way of writing this pattern.

    I looked at the code of begin_work, and it doesn't touch RaiseError. I suppose that makes sense in general, but I'd expect such a handy method to do that for me.