]> 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:28:36 +0000 (10:28 -0400)
commitdbae24ab4c5f1e02e81d7211c94e1c7d9fc3562f
tree99a16a884e87535d7bd5fd2202b2fb3e672ba627
parent922f11f6f26c5ba0481a12d7a650823f922be57c
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
(cherry picked from commit eae9d1420bbfde4dbd835b654e80653cd5ac2155)
doc/build/changelog/unreleased_14/8711.rst [new file with mode: 0644]
lib/sqlalchemy/orm/strategy_options.py
test/orm/test_relationship_criteria.py