diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2021-12-22 15:33:11 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2021-12-22 15:46:48 -0500 |
commit | c66c6d1aeff92f838740b7745a9c2a47852949d6 (patch) | |
tree | 8e11c5c57c39db78c26e2d6e7c91f9755f5f8fe5 /lib/sqlalchemy/dialects/sqlite/pysqlite.py | |
parent | ab75ec2adb35b249ae6e700f965eb52c0340da69 (diff) | |
download | sqlalchemy-c66c6d1aeff92f838740b7745a9c2a47852949d6.tar.gz |
add recursion check for with_loader_criteria() option
Fixed recursion overflow which could occur within ORM statement compilation
when using either the :func:`_orm.with_loader_criteria` feature or the the
:meth:`_orm.PropComparator.and_` method within a loader strategy in
conjunction with a subquery which referred to the same entity being altered
by the criteria option, or loaded by the loader strategy. A check for
coming across the same loader criteria option in a recursive fashion has
been added to accommodate for this scenario.
Fixes: #7491
Change-Id: I8701332717c45a21948ea4788a3058c0fbbf03a7
Diffstat (limited to 'lib/sqlalchemy/dialects/sqlite/pysqlite.py')
0 files changed, 0 insertions, 0 deletions