]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
propagate _scalar_type() for SelectStatementGrouping
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 18 Nov 2025 20:10:05 +0000 (15:10 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 18 Nov 2025 20:11:05 +0000 (15:11 -0500)
commit42710c9220f897487710424981b81a69a7da5def
tree7d32f1a418e7dbe0dbba3e88ca7d3081c7894b36
parentf6714c8e090b9dd84ac4256ed74eefc1fe9cbddc
propagate _scalar_type() for SelectStatementGrouping

Fixed issue where using the :meth:`.ColumnOperators.in_` operator with a
nested :class:`.CompoundSelect` statement (e.g. an ``INTERSECT`` of
``UNION`` queries) would raise a :class:`NotImplementedError` when the
nested compound select was the first argument to the outer compound select.
The ``_scalar_type()`` internal method now properly handles nested compound
selects.

Fixes: #12987
Change-Id: I6aa1b38863588d371bbac74b3531b99ccd5fcaec
doc/build/changelog/unreleased_20/12987.rst [new file with mode: 0644]
lib/sqlalchemy/sql/selectable.py
test/sql/test_operators.py