]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Fix regression when deserializing python rows into cython
authorFederico Caselli <cfederico87@gmail.com>
Mon, 6 Mar 2023 23:25:59 +0000 (00:25 +0100)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 10 Mar 2023 15:26:26 +0000 (10:26 -0500)
commitfd9aa847920b9e4dff61ef7a5555c9fa6e362484
tree9dc0046bd234cbf4ad2aadef658283787c6e107b
parent9c0715181de6f03543c7ac9038c481f57f773d49
Fix regression when deserializing python rows into cython

Fixed regression involving pickling of Python rows between the cython and
pure Python implementations of :class:`.Row`, which occurred as part of
refactoring code for version 2.0 with typing. A particular constant were
turned into a string based ``Enum`` for the pure Python version of
:class:`.Row` whereas the cython version continued to use an integer
constant, leading to deserialization failures.

Regression occurred in a4bb502cf95ea3523e4d383c4377e50f402d7d52

Fixes: #9423
Change-Id: Icbd85cacb2d589cef7c246de7064249926146f2e
doc/build/changelog/unreleased_20/9423.rst [new file with mode: 0644]
lib/sqlalchemy/engine/_py_row.py
lib/sqlalchemy/testing/util.py
test/base/test_result.py
test/base/test_utils.py
test/sql/test_resultset.py