Sometimes UOWTask does sorting circular dependencies wrong

Issue #1306 resolved
Former user created an issue

Testcase with (I hope, sufficient) description is in the attachment.


Angri

Comments (3)

  1. Mike Bayer repo owner

    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.

  2. Log in to comment