summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/compiler.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2020-06-01 19:11:19 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2020-06-01 19:11:19 -0400
commit3d99ee28ed368c3bdbeaf872ef65b0c9a7c0da33 (patch)
tree6ab9a88793821d16bd573a516a4fbf55d358a453 /lib/sqlalchemy/sql/compiler.py
parentb05c8a0ef8b6e7bfd169a21e7c1f834fdb00da19 (diff)
downloadsqlalchemy-3d99ee28ed368c3bdbeaf872ef65b0c9a7c0da33.tar.gz
Refine IN and scalar subquery coercions
Ensure IN emits a warning when it coerces a FromClause into a select(), however that it continues to allow the scalar_subquery() coercion to be automatic, particularly since it's not clear that "col IN (select)" is necessarily "scalar" in the case of tuples. Convert the "scalar_subquery()" warning emitted in other cases to be a warning, rather than a deprecation warning. I can't imagine taking this coercion out as it is intuitive and is always going to happen; we just would like to note that an implicit coercion is occurring. Fixes: #5369 Change-Id: I748f01f40bc85c64e2776f9b88ef35641fa8fb5c
Diffstat (limited to 'lib/sqlalchemy/sql/compiler.py')
0 files changed, 0 insertions, 0 deletions