[ZODB-Dev] Re: [Persistence-sig] "Straw Man" transaction API

Jim Fulton jim@zope.com
Thu, 01 Aug 2002 08:42:10 -0400


Anthony Baxter wrote:
>>>>Barry A. Warsaw wrote
>>>>
>>Say you had savepoint(t1), savepoint(t2), and savepoint(t3) where t1 <
>>t2 < t3.  Then you rolled back savepoint(t1) and then try to rollback
>>savepoint(t3), you'd get an exception right?
>>
> 
> If you have multiple savepoints in the same transaction, should you be
> allowed to roll back the one that's not the most recent? To my brain, this
> doesn't make sense...

Rolling back to a non-recent savepoint implicitly rolls back the recent savepoints.

Jim


-- 
Jim Fulton           mailto:jim@zope.com       Python Powered!
CTO                  (888) 344-4332            http://www.python.org
Zope Corporation     http://www.zope.com       http://www.zope.org