diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2022-09-25 14:56:22 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2022-09-25 16:17:33 -0400 |
commit | 29838ef584d49e5ecca08f76e4966454dc7f060f (patch) | |
tree | 90e30e21a350c9bb53f1312793ec2e370cf1228b /lib/sqlalchemy/dialects/postgresql/base.py | |
parent | 75ab50869b37368f32ec311dfb59777c0c1d1edb (diff) | |
download | sqlalchemy-29838ef584d49e5ecca08f76e4966454dc7f060f.tar.gz |
warn for local-only column in remote side
A warning is emitted in ORM configurations when an explicit
:func:`_orm.remote` annotation is applied to columns that are local to the
immediate mapped class, when the referenced class does not include any of
the same table columns. Ideally this would raise an error at some point as
it's not correct from a mapping point of view.
Fixes: #7094
Fixes: #8575
Change-Id: Ia31be24aebe143161e19dc311b52c08fd5014d33
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/base.py')
0 files changed, 0 insertions, 0 deletions