diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-04-07 17:37:14 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-04-07 19:37:39 -0400 |
commit | 17e31604ae13ebd58b148a4319cfed09e5448ee2 (patch) | |
tree | 52952e0f02676562f23f990bfaab2164d48f544d /lib/sqlalchemy/sql/schema.py | |
parent | 5150ef4ed166042b4a1f4a77b5a0af609b5fc660 (diff) | |
download | sqlalchemy-17e31604ae13ebd58b148a4319cfed09e5448ee2.tar.gz |
Use dot-separated name resolution for relationship target
The string argument accepted as the first positional argument by the
:func:`.relationship` function when using the Declarative API is no longer
interpreted using the Python ``eval()`` function; instead, the name is dot
separated and the names are looked up directly in the name resolution
dictionary without treating the value as a Python expression. However,
passing a string argument to the other :func:`.relationship` parameters
that necessarily must accept Python expressions will still use ``eval()``;
the documentation has been clarified to ensure that there is no ambiguity
that this is in use.
Fixes: #5238
Change-Id: Id802f403190adfab0ca034afe2214ba10fd9cfbb
Diffstat (limited to 'lib/sqlalchemy/sql/schema.py')
0 files changed, 0 insertions, 0 deletions