We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a7ed7b commit fd45a8bCopy full SHA for fd45a8b
database.py
@@ -25,8 +25,10 @@ def log_transaction(session, flush_context):
25
#print >> sys.stderr, "> Dirty objects map: %s" % ([session.is_modified(x) for x in session.dirty],)
26
#print >> sys.stderr, "> Flush will change anything? %s" % (flush_changes_anything(session),)
27
if flush_changes_anything(session):
28
- for trans in session.transaction._iterate_parents():
+ trans = session.transaction
29
+ while trans is not None:
30
transactions_with_flushes.add(trans)
31
+ trans = trans.parent
32
33
def session_has_pending_commit(session):
34
session.flush()
0 commit comments