On Dec 16, 2007 2:42 PM, Aaron Swartz <email address hidden> wrote:
> I'm not sure what you're saying.
I am saying that when you do rollback in a nested transaction, it is
not clear which level you are trying to rollback.
Assuming that rollback will rollback the latest transaction is not
always correct.
> The problem is that db_execute automatically calls rollback.
On Dec 16, 2007 2:42 PM, Aaron Swartz <email address hidden> wrote:
> I'm not sure what you're saying.
I am saying that when you do rollback in a nested transaction, it is
not clear which level you are trying to rollback.
Assuming that rollback will rollback the latest transaction is not
always correct.
> The problem is that db_execute automatically calls rollback.
I fixed it like this.
http:// codebrowse. launchpad. net/~anandology /webpy/ webpy-0. 23/revision/ 199
>
> Aee you saying we should just require people to use with statements?
>
No.
I am suggesting
t = db.transaction()
t.rollback()
instead of
db.transact()
db.rollback()