[Zope-DB] MySQL ZSQL Transactions or Commit in Zope?
mike at ziacom.us
Sun May 15 16:30:38 EDT 2005
I am trying to find sample code for performing transactions in ZSQL with
mysql 4.1. I'd like to do something like this:
1 - Insert record A into USER table
2 - Get auto_increment id for record A
3 - Insert record B into WIDGET table with auto_increment id from
But if step 3 fails, I want to undo step 1.
Do I need to back out manually?
Thanks in advance!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Zope-DB