]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Implement ScalarValue
authorFederico Caselli <cfederico87@gmail.com>
Tue, 8 Nov 2022 21:12:47 +0000 (22:12 +0100)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 26 Nov 2022 23:49:06 +0000 (18:49 -0500)
commit61443aa62bbef158274ae393db399fec7f054c2d
tree18d8794c2da57295f7b48530457ca9e71a60dfdb
parent5cc3825da3cdda6bd80e4fe7250b795c15ca4be3
Implement ScalarValue

Added :class:`_expression.ScalarValues` that can be used as a column
element allowing using :class:`_expression.Values` inside IN clauses
or in conjunction with ``ANY`` or ``ALL`` collection aggregates.
This new class is generated using the method
:meth:`_expression.Values.scalar_values`.
The :class:`_expression.Values` instance is now coerced to a
:class:`_expression.ScalarValues` when used in a ``IN`` or ``NOT IN``
operation.

Fixes: #6289
Change-Id: Iac22487ccb01553684b908e54d01c0687fa739f1
doc/build/changelog/unreleased_20/6289.rst [new file with mode: 0644]
doc/build/core/selectable.rst
lib/sqlalchemy/sql/coercions.py
lib/sqlalchemy/sql/compiler.py
lib/sqlalchemy/sql/elements.py
lib/sqlalchemy/sql/selectable.py
test/sql/test_compare.py
test/sql/test_compiler.py
test/sql/test_operators.py
test/sql/test_roles.py