Repository navigation
AttributeError when using impl.active_history on a composite attribute #9458
Unanswered
levsa
asked this question in
Usage Questions
Replies: 2 comments 3 replies
|
there's a bug here but also active_history does not seem to be implemented for composite attributes even in 1.4, that is, if you have an event handler on a composite, you still dont get the "old" value w / active history. im implementing this fully, but i assume you dont actually need active history for composites since the above call was likely not having any effect even if it succeeded. |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
We are using SQLAlchemy 1.3 and investigating how to migrate to 2.0 but our code that uses
InstrumentedAttribute.impl.active_historybreaks forcompositeattributes when running on SQLAlchemy 2.0. Is this a bug?Here is a standalone example:
which fails with:
All reactions