diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2023-04-17 13:46:12 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2023-04-17 15:32:00 -0400 |
commit | a05ae2c7ce0c056eef549d078faa2ca20356d35c (patch) | |
tree | 3927fa073a6b3b3b9d124ce953ed38c062ff1d28 /doc | |
parent | acf7fbd60b9b1291dfc91438416867c88e94c5ba (diff) | |
download | sqlalchemy-a05ae2c7ce0c056eef549d078faa2ca20356d35c.tar.gz |
apply criteria options from top-level core-only statement
Made an improvement to the :func:`_orm.with_loader_criteria` loader option
to allow it to be indicated in the :meth:`.Executable.options` method of a
top-level statement that is not itself an ORM statement. Examples include
:func:`_sql.select` that's embedded in compound statements such as
:func:`_sql.union`, within an :meth:`_dml.Insert.from_select` construct, as
well as within CTE expressions that are not ORM related at the top level.
Improved propagation of :func:`_orm.with_loader_criteria` within
ORM enabled UPDATE and DELETE statements as well.
Fixes: #9635
Change-Id: I088ad91929dc797c06f292f5dc547d48ffb30430
Diffstat (limited to 'doc')
-rw-r--r-- | doc/build/changelog/unreleased_20/9635.rst | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/build/changelog/unreleased_20/9635.rst b/doc/build/changelog/unreleased_20/9635.rst new file mode 100644 index 000000000..73281c7e1 --- /dev/null +++ b/doc/build/changelog/unreleased_20/9635.rst @@ -0,0 +1,10 @@ +.. change:: + :tags: bug, orm + :tickets: 9635 + + Made an improvement to the :func:`_orm.with_loader_criteria` loader option + to allow it to be indicated in the :meth:`.Executable.options` method of a + top-level statement that is not itself an ORM statement. Examples include + :func:`_sql.select` that's embedded in compound statements such as + :func:`_sql.union`, within an :meth:`_dml.Insert.from_select` construct, as + well as within CTE expressions that are not ORM related at the top level. |