]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Serialize the context dictionary in Load objects
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 26 Aug 2019 15:44:09 +0000 (11:44 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 26 Aug 2019 18:32:32 +0000 (14:32 -0400)
commitef7e9bba22534e294fbb0cbf3e6a76ae8079d46e
tree4e5826c766c833e4fe1aa03219fea13f1f96776a
parentccf079a89d8c86357f934e70d37c70a9a9b0ed11
Serialize the context dictionary in Load objects

Fixed bug where :class:`.Load` objects were not pickleable due to
mapper/relationship state in the internal context dictionary.  These
objects are now converted to picklable using similar techniques as that of
other elements within the loader option system that have long been
serializable.

Fixes: #4823
Change-Id: Id2a0d8b640ac475c86d6416ad540671e66d410e5
(cherry picked from commit cd2ccee9d807eb601db2d242ce4cdfa8acb98111)
doc/build/changelog/unreleased_13/4823.rst [new file with mode: 0644]
lib/sqlalchemy/orm/path_registry.py
lib/sqlalchemy/orm/strategy_options.py
test/orm/test_pickled.py
test/orm/test_utils.py