]> 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 19:53:01 +0000 (15:53 -0400)
commitd78686b4f109fdc78ca6239e5a5af791717bc48d
tree3c06928cbf16b38b7c24ac3d6bc70c2c67186980
parentfe772672b4fc00df0b66aca92e2092779a844a2d
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
doc/build/changelog/unreleased_13/5541.rst [new file with mode: 0644]
lib/sqlalchemy/ext/associationproxy.py
test/ext/test_associationproxy.py