[Persistence-sig] "Straw Man" transaction API

Barry A. Warsaw barry@zope.com
Wed, 31 Jul 2002 21:06:28 -0400


>>>>> "JH" == Jeremy Hylton <jeremy@alum.mit.edu> writes:

    JH> The database needs some object to represent the particular
    JH> savepoint.  A transaction could call savepoint() three times
    JH> and have three different states it could rollback to.  I
    JH> decided a rollback object was clearer than a rollback() method
    JH> on the transaction that took a savepoint_id argument.

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?

-Barry