Files
sqlalchemy/test
Mike Bayer 548e41ec5d trust user PK argument as given; don't reduce
Fixed issue where the :class:`_orm.Mapper` would reduce a user-defined
:paramref:`_orm.Mapper.primary_key` argument too aggressively, in the case
of mapping to a ``UNION`` where for some of the SELECT entries, two columns
are essentially equivalent, but in another, they are not, such as in a
recursive CTE. The logic here has been changed to accept a given
user-defined PK as given, where columns will be related to the mapped
selectable but no longer "reduced" as this heuristic can't accommodate for
all situations.

Fixes: #7842
Change-Id: Ie46f0a3d42cae0501641fa213da0a9d5ca26c3ad
(cherry picked from commit d051645463)
2022-03-23 12:12:54 -04:00
..
2022-03-11 11:30:11 -05:00
2022-03-08 13:41:29 -05:00
2022-03-08 13:41:29 -05:00
2022-03-04 16:35:47 -05:00