]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Pickling fixes for ORM / Core
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 13 Oct 2021 16:00:52 +0000 (12:00 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 13 Oct 2021 17:52:23 +0000 (13:52 -0400)
commit53ad3cf4e9b02f841fff960ec95870110f6c7bcb
tree61695ea261585be3b555817dbe3d92554f38704f
parentde9db9940fbcf32ccd93169d2ed6aa874869b84d
Pickling fixes for ORM / Core

Fixed regression where ORM loaded objects could not be pickled in cases
where loader options making use of ``"*"`` were used in certain
combinations, such as combining the :func:`_orm.joinedload` loader strategy
with ``raiseload('*')`` of sub-elements.

Fixes: #7134
Fixed issue where SQL queries using the
:meth:`_functions.FunctionElement.within_group` construct could not be
pickled, typically when using the ``sqlalchemy.ext.serializer`` extension
but also for general generic pickling.

Fixes: #6520
Change-Id: Ib73fd49c875e6da9898493c190f610e68b88ec72
doc/build/changelog/unreleased_14/6520.rst [new file with mode: 0644]
doc/build/changelog/unreleased_14/7134.rst [new file with mode: 0644]
lib/sqlalchemy/orm/path_registry.py
lib/sqlalchemy/sql/elements.py
test/orm/test_pickled.py
test/sql/test_functions.py