]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Support generic types for union and union_all
authorMingyu Park <mingyuu.dev@gmail.com>
Fri, 7 Feb 2025 19:45:26 +0000 (14:45 -0500)
committerFederico Caselli <cfederico87@gmail.com>
Wed, 12 Feb 2025 20:00:27 +0000 (21:00 +0100)
commitfc44b5078b74081b0df94cca9d21b89ed578caf3
tree4a690bcd03d95c377a07c75e164ee625f568212b
parent47dab9181c86e6a944411470885f6fe18a1fc15f
Support generic types for union and union_all

Support generic types for compound selects (:func:`_sql.union`,
:func:`_sql.union_all`, :meth:`_sql.Select.union`,
:meth:`_sql.Select.union_all`, etc) returning the type of the first select.

Fixes: #11922
Closes: #12320
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/12320
Pull-request-sha: f914a19f7201cec292056e900436d8c8431b9f87

Change-Id: I4fffa5d3fe93dd3a293b078360e326fea4207c5d
doc/build/changelog/unreleased_20/11922.rst [new file with mode: 0644]
lib/sqlalchemy/sql/_selectable_constructors.py
lib/sqlalchemy/sql/_typing.py
lib/sqlalchemy/sql/selectable.py
test/typing/plain_files/sql/common_sql_element.py