]> 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:05:56 +0000 (18:05 -0500)
commit08a8e8cf3b06ed9eb4003f5727a3551d2b479509
tree939bccce14e90daf0cce91bc3c16c9a80f8b09a9
parent0e146706058c8e4920c675644623601f2c4930d7
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
doc/build/changelog/unreleased_12/4209.rst [new file with mode: 0644]
lib/sqlalchemy/orm/strategy_options.py
test/orm/test_pickled.py