]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Don't include AliasedClass when pickling options
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 5 Mar 2018 19:48:00 +0000 (14:48 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 5 Mar 2018 23:07:25 +0000 (18:07 -0500)
commitdeff2a8bf5e88579f2c62dd32c0b7310a5762ccb
tree48a0e4085aaa27596be350cc7712c4760500653c
parentdc117f8c66229a3ae0fd9272aa04bd455a669c67
Don't include AliasedClass when pickling options

Fixed 1.2 regression where a mapper option that contains an
:class:`.AliasedClass` object, as is typical when using the
:meth:`.QueryableAttribute.of_type` method, could not be pickled.   1.1's
behavior was to omit the aliased class objects from the path, so this
behavior is restored.

Change-Id: I4b36a422b7c0e6a6da7ee3ba3ab282c13917a31f
Fixes: #4209
(cherry picked from commit 08a8e8cf3b06ed9eb4003f5727a3551d2b479509)
doc/build/changelog/unreleased_12/4209.rst [new file with mode: 0644]
lib/sqlalchemy/orm/strategy_options.py
test/orm/test_pickled.py