]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Check for non-mapped property in synonym
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 4 Sep 2017 20:21:14 +0000 (16:21 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 4 Sep 2017 22:55:30 +0000 (18:55 -0400)
commit130f31ca79c7b40b2cb8aa1a4af7049408074d12
tree503370647ea6d78bbc38e4e5e6c3343bdc710136
parent65680b2343ef421a62582e23e2b35293732933ad
Check for non-mapped property in synonym

An :class:`.InvalidRequestError` is raised when a :func:`.synonym`
is used against an attribute that is not against a :class:`.MapperProperty`,
such as an association proxy.  Previously, a recursion overflow would
occur trying to locate non-existent attributes.

Change-Id: If2ce38c429a69951df4c94b71b74edbd59d775e3
Fixes: #4067
doc/build/changelog/unreleased_11/4067.rst [new file with mode: 0644]
lib/sqlalchemy/orm/descriptor_props.py
test/orm/test_mapper.py