]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
raise for non-Load opt passed to options()
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 25 Oct 2022 14:22:14 +0000 (10:22 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 25 Oct 2022 14:22:14 +0000 (10:22 -0400)
commiteae9d1420bbfde4dbd835b654e80653cd5ac2155
treec930f0a6a030c6cf2c08e9af21e7c4e255fb3e47
parent37b29b58cb3e1b0715711327724166b0fb991c70
raise for non-Load opt passed to options()

Fixed the exception that's raised when the
:func:`_orm.with_loader_criteria` option is attempted to be used within a
specific loader path, like in loader.options().
:func:`_orm.with_loader_criteria` is only intended to be used at the top
level.

Fixes: #8711
Change-Id: Iaa7b13956b808761e618a6be6406e5c82df1c65c
doc/build/changelog/unreleased_14/8711.rst [new file with mode: 0644]
lib/sqlalchemy/orm/strategy_options.py
test/orm/test_relationship_criteria.py