]> 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:08:49 +0000 (21:08 +0100)
commit253b3694b7abc3b8fee82e9a83a719047885d94a
tree2a087a5ec77320c821a90df13e594fd9bc7d5e1f
parent907f3f276f2a7b5f091455d6440949c30289e249
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
(cherry picked from commit fc44b5078b74081b0df94cca9d21b89ed578caf3)
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