diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2021-06-25 16:10:01 -0400 |
---|---|---|
committer | mike bayer <mike_mp@zzzcomputing.com> | 2021-06-26 19:08:04 +0000 |
commit | 77e58046dc9222a4a869443cf30bc9ff39312f9d (patch) | |
tree | ea16beecd5222f509342259b63d076d1699c6700 /lib/sqlalchemy/dialects/postgresql/pypostgresql.py | |
parent | 84a68ac8820a2e1043f8317d42c5681c81cbd9d5 (diff) | |
download | sqlalchemy-77e58046dc9222a4a869443cf30bc9ff39312f9d.tar.gz |
set _render_for_subquery for legacy set ops
Adjusted :meth:`_orm.Query.union` and similar set operations to be
correctly compatible with the new capabilities just added in
:ticket:`6661`, with SQLAlchemy 1.4.19, such that the SELECT statements
rendered as elements of the UNION or other set operation will include
directly mapped columns that are mapped as deferred; this both fixes a
regression involving unions with multiple levels of nesting that would
produce a column mismatch, and also allows the :func:`_orm.undefer` option
to be used at the top level of such a :class:`_orm.Query` without having to
apply the option to each of the elements within the UNION.
Fixes: #6678
Change-Id: Iba97ce7fd8a965499853256fd2eb7f61512db60f
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/pypostgresql.py')
0 files changed, 0 insertions, 0 deletions