Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: Nested (sql) transactions

by mbethke (Hermit)
on Feb 04, 2012 at 05:16 UTC ( #951759=note: print w/replies, xml ) Need Help??

in reply to Nested (sql) transactions

First of all, your code doesn't look noobish at all! The variable naming isn't my taste and would probably be considered un-perlish by most, but well, that's taste :)

One problem that I can see apart from what tobyink spotted (he obviously has much more of a clue there than me, I've used simple transactions but never even heard of savepoints) is that you're rolling back transactions in random order if several DB handles were used. Why someone would want a single transaction to span things done on different connections I don't know but I guess if it does happen this could cause problems. Easy enough to fix though.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://951759]
[Discipulus]: vrk i searched but found nothing: after this my math level if terribly low but i like to discuss my discovery with kind mathematicians
[vrk]: Discipulus Have you considered asking at https://mathoverfl
[vrk]: Oops, should be https://mathoverfl

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2017-04-27 08:07 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (501 votes). Check out past polls.