summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm/unitofwork.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2011-09-22 19:21:39 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2011-09-22 19:21:39 -0400
commit127c48252edc2d431a10dbe5b3c3ae77d16ac479 (patch)
tree2bb939ef0a7e6ed870fb29e6cd705d43b2c1fe34 /lib/sqlalchemy/orm/unitofwork.py
parentf0f135b6bd20f7ddcce05711d0185c9c03bf2f41 (diff)
downloadsqlalchemy-127c48252edc2d431a10dbe5b3c3ae77d16ac479.tar.gz
- Fixed bug in unit of work whereby detection of
"cycles" among classes in highly interlinked patterns would not produce a deterministic result; thereby sometimes missing some nodes that should be considered cycles and causing further issues down the road. Note this bug is in 0.6 also; not backported at the moment. [ticket:2282]
Diffstat (limited to 'lib/sqlalchemy/orm/unitofwork.py')
-rw-r--r--lib/sqlalchemy/orm/unitofwork.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/sqlalchemy/orm/unitofwork.py b/lib/sqlalchemy/orm/unitofwork.py
index 5e0c93938..5c1f3b1a7 100644
--- a/lib/sqlalchemy/orm/unitofwork.py
+++ b/lib/sqlalchemy/orm/unitofwork.py
@@ -308,9 +308,10 @@ class UOWTransaction(object):
#sort = topological.sort(self.dependencies, postsort_actions)
#print "--------------"
- #print self.dependencies
- #print list(sort)
- #print "COUNT OF POSTSORT ACTIONS", len(postsort_actions)
+ #print "\ndependencies:", self.dependencies
+ #print "\ncycles:", self.cycles
+ #print "\nsort:", list(sort)
+ #print "\nCOUNT OF POSTSORT ACTIONS", len(postsort_actions)
# execute
if self.cycles: