Hello,
Is anyone having problems with transactions. My inserts are not being
rolled back. I'm using InnoDB and an older but customized version of
web.py (version 0.2). I did not touch the db.py module though.
Here is skeleton of my code:
try:
do_something()
except:
web.rollback()
def do_something():
web.transact()
try:
web.insert(...)
except:
raise
call_something_else_that_could_cause_an_exception()
# no exception so we commit
web.commit()
Thank you so much,
Alex
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---