Hi All,

I'm just wondering what happens if I were to call session.close()
whilst inside a subtransaction? Would it indeed close the session and
abort all of the "parent transactions" or would it do nothing?

Looking at the code (and I haven't looked at it in any great detail,
sorry) I imagine that it does indeed abort all parent transactions. If
so, is there any way to tell whether the session is "in a
subtransaction state" or not, so I could only call close() if it is
the "root"?

Sorry if this is a bit confusing or if I'm being horrendously
ignorant :)

—Oliver

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" 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/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to