]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Set up of_type variable for legacy loader option deserialize
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 10 Jan 2018 20:27:33 +0000 (15:27 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 10 Jan 2018 20:27:33 +0000 (15:27 -0500)
commit4332b970c9ec0b32170b1206b965fa7eb5d62a3f
tree3172990f66d1989b1ab0062cef9ad8f0428e5b88
parentcdd090b11e14b7e1b33a3f836809093ffa99209b
Set up of_type variable for legacy loader option deserialize

Fixed regression where pickle format of a Load / _UnboundLoad object (e.g.
loader options) changed and ``__setstate__()`` was raising an
UnboundLocalError for an object received from the legacy format, even
though an attempt was made to do so.  tests are now added to ensure this
works.

Change-Id: Idccf643e010776817dd32512facdefa263188814
Fixes: #4159
doc/build/changelog/unreleased_12/4159.rst [new file with mode: 0644]
lib/sqlalchemy/orm/strategy_options.py
test/orm/test_options.py