summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects/postgresql/base.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2020-04-19 16:52:54 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2020-04-19 16:52:54 -0400
commit430ce5eab26d46301ae741f9068f13ba09907d8e (patch)
treeea6dbb81e735a62dcd2675cbf7b3bea073438320 /lib/sqlalchemy/dialects/postgresql/base.py
parent2f617f56f2acdce00b88f746c403cf5ed66d4d27 (diff)
downloadsqlalchemy-430ce5eab26d46301ae741f9068f13ba09907d8e.tar.gz
Raise informative error when non-object m2o comparison used
An informative error message is raised when an ORM many-to-one comparison is attempted against an object that is not an actual mapped instance. Comparisons such as those to scalar subqueries aren't supported; generalized comparison with subqueries is better achieved using :meth:`~.RelationshipProperty.Comparator.has`. Fixes: #5269 Change-Id: I2e23178eb59728c39241a46bfa7411239a87492e
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/base.py')
0 files changed, 0 insertions, 0 deletions