]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Check tokens in chop path for inspectionattr before calling is_mapper
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 8 Jul 2018 23:10:36 +0000 (19:10 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 8 Jul 2018 23:12:36 +0000 (19:12 -0400)
commitdd7d03dcf58520d06d55653982d6c0868ec49919
treed692e232f5f97cc12e9c0e313f1ce32751381788
parent28ab7f19b889f6459ac6248082fb58f71a168f54
Check tokens in chop path for inspectionattr before calling is_mapper

Fixed regression in 1.2.9 due to :ticket:`4287` where using a
:class::`.Load` option in conjunction with a string wildcard would result
in a TypeError.

Change-Id: I2997ead0b8b9fa0edd009aa6f3161f4618fab97b
Fixes: #4298
(cherry picked from commit aec57258b3b33fe070ebb54f31f1627db07f072b)
doc/build/changelog/unreleased_12/4298.rst [new file with mode: 0644]
lib/sqlalchemy/orm/strategy_options.py
test/orm/test_options.py