]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Deannoate functions before matching .__class__
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 19 Mar 2021 05:18:06 +0000 (01:18 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 19 Mar 2021 05:19:32 +0000 (01:19 -0400)
commite67d1b79c544c14f375dff90b5d8af5b472c053e
tree177d6959aaf1560e8a4cadc81fe8117c5ee27636
parentd0812a1abf903f6b5f1a0bfb19f8c87a665f8309
Deannoate functions before matching .__class__

Fixed regression where the SQL compilation of a :class:`.Function` would
not work correctly if the object had been "annotated", which is an internal
memoization process used mostly by the ORM. In particular it could affect
ORM lazy loads which make greater use of this feature in 1.4.

Fixes: #6095
Change-Id: I7a6527df651f440a04d911ba78ee0b0dd4436dcd
doc/build/changelog/unreleased_14/6095.rst [new file with mode: 0644]
lib/sqlalchemy/sql/compiler.py
lib/sqlalchemy/testing/fixtures.py
test/orm/test_lazy_relations.py
test/sql/test_functions.py