]> 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:08 +0000 (14:32 -0400)
commitcd2ccee9d807eb601db2d242ce4cdfa8acb98111
tree381265ed1c6897e43bf8957b7de6c3a2456e9efd
parente429ef1d31343b99e885f58a79800ae490155294
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
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