- changed milestone to 0.5.xx
Sometimes UOWTask does sorting circular dependencies wrong
Issue #1306
resolved
Testcase with (I hope, sufficient) description is in the attachment.
Angri
Comments (3)
-
repo owner -
repo owner - changed status to resolved
The bug existed regardless of the sort, but only had that exact symptom in some cases. Elements which remain pending are no longer inadvertently logged as persistent, 2dba55cb27cf52fb41533ff0cf85096db38b5d9d.
-
repo owner - removed milestone
Removing milestone: 0.5.xx (automated comment)
- Log in to comment
its a nice test and I'll work on it. But your problem is that you're sending a list of objects to
flush()
, which is never a good idea since SQLA's dependency logic doesn't handle a subset of objects with dependencies to other pending objects which are not in the list very well, so for now I'd suggest not using that feature - the bugfix may ultimately require a change in behavior.It definitely is a bug though that the non-persisted objects are getting stuck in the identity map.