]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Raise NotImplemenedError for association proxy __clause_element__
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 27 Aug 2020 19:50:47 +0000 (15:50 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 27 Aug 2020 21:01:11 +0000 (17:01 -0400)
commit99bb0fc9e8d57c2dce3d9b794bc9ab73a2059bec
treeeda8a89bbdd8e92a5ffc77c9a91cb8f6b18072df
parent2ab2208c7d78accb41317ae52ab0abdd5fb731ea
Raise NotImplemenedError for association proxy __clause_element__

It's not possible right now to use an association proxy element as a plain
column expression to be SELECTed from or used in a SQL function.  An
informative error is now raised when this occurs.

Fixes: #5542
Change-Id: I334e767ebc0b56c1dccc4a1e5185b0435af77b93
(cherry picked from commit d78686b4f109fdc78ca6239e5a5af791717bc48d)
doc/build/changelog/unreleased_13/5541.rst [new file with mode: 0644]
lib/sqlalchemy/ext/associationproxy.py
test/ext/test_associationproxy.py