Files
Mike Bayer 9030af40ba dont produce side effects for do_orm_execute
Fixed issue where the presence of a :meth:`.SessionEvents.do_orm_execute`
event hook would cause internal execution options such as ``yield_per`` and
loader-specific state from the first ``orm_pre_session_exec`` pass to leak
into the second pass, leading to errors when using relationship loaders
such as :func:`.selectinload` and :func:`.immediateload`.  The execution
options passed to the second compilation pass are now based on the original
options plus only the explicit updates made via
:meth:`.ORMExecuteState.update_execution_options` within the event hook.

Fixes: #13301
Change-Id: Ide64d7202102930b68a2ab903054d538cd2f99dd
2026-05-24 11:22:40 -04:00
..
2026-05-10 19:00:42 +02:00
2025-11-28 13:16:13 -05:00
2026-05-10 19:00:42 +02:00
2025-12-18 21:18:42 +01:00