]> 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:16 +0000 (15:11 -0500)
commita8d73764b1a548dd39001a1d9998da090e1ecb2c
tree8c41ca1ab08c883e5724c1b854a9581f10cd6468
parent7ef28195be4f1830fdf07f0793e06bfbeca361eb
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
(cherry picked from commit 42710c9220f897487710424981b81a69a7da5def)
doc/build/changelog/unreleased_20/12987.rst [new file with mode: 0644]
lib/sqlalchemy/sql/selectable.py
test/sql/test_operators.py