- attached sqlalchemyappenderror.py
Infinite recursion when appending to a many-to-many dynamic relation
When I try to append to a many-to-many lazy=dynamic relation, I get an infinite recursion exception. I'm not going to include the traceback because it's big and would stretch the page, but I'm attaching a script that demonstrates the issue.
Comments (6)
-
Account Deleted -
repo owner - changed milestone to 0.4.xx
its the backref being "dynamic" as well. as a workaround for now you can remove "dynamic" from one side, but also you have to do sometihng with that "foo_id" column you have on the "bars" table (either stick something on it, like a relation(), or remove the column).
-
Account Deleted but also you have to do sometihng with that "foo_id" column you have on the "bars" table (either stick something on it, like a relation(), or remove the column).
Whoops, sorry about that. That was left over from trying to figure out whether the bug was occurring on many-to-one relations as well.
-
repo owner - changed status to resolved
OK, sorry this missed the release, it was very trivial. fixed in 569c9fa65ab0a6d7a5bf6d12996940c53cbcf345.
-
Account Deleted Thanks for the very quick fix.
-
repo owner - removed milestone
Removing milestone: 0.4.xx (automated comment)
- Log in to comment
Demonstration of the issue.