Files
sqlalchemy/test/sql
Mike Bayer 33262f366e Add Executable traverse internals to Executable subclasses and turn tests on
Fixed a caching issue where :func:`_orm.with_loader_criteria` would
incorrectly reuse cached bound parameter values when used with
:class:`_sql.CompoundSelect` constructs such as :func:`_sql.union`. The
issue was caused by the cache key for compound selects not including the
execution options that are part of the :class:`_sql.Executable` base class,
which :func:`_orm.with_loader_criteria` uses to apply its criteria
dynamically. The fix ensures that compound selects and other executable
constructs properly include execution options in their cache key traversal.

Fixes: #12905
Change-Id: I24bbd96233cddabe42eb716f078eea4c84b1af05
(cherry picked from commit 148059ced6)
2025-10-08 08:47:42 -04:00
..
2024-02-05 19:28:22 +01:00
2023-05-09 20:23:48 -04:00
2025-06-11 15:19:32 -04:00
2024-02-05 19:28:22 +01:00