]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
implement custom setstate to work around implicit type/comparator
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 9 Aug 2023 14:17:35 +0000 (10:17 -0400)
committermike bayer <mike_mp@zzzcomputing.com>
Wed, 9 Aug 2023 22:14:37 +0000 (22:14 +0000)
commit313cc94cb578543a3c3cf3e104b0c144ada624e7
tree4d7f7bb0babd7c3939ab3a9b00e006b438500903
parentacdebde0d501e8029c667e41be23ab0ea5e862aa
implement custom setstate to work around implicit type/comparator

Fixed issue where unpickling of a :class:`_schema.Column` or other
:class:`_sql.ColumnElement` would fail to restore the correct "comparator"
object, which is used to generate SQL expressions specific to the type
object.

Fixes: #10213
Change-Id: I74e805024bcc0d93d549bd94757c2865b3117d72
(cherry picked from commit 9d2b83740ad5c700b28cf4ca7807c09c7338c36a)
doc/build/changelog/unreleased_14/10213.rst [new file with mode: 0644]
lib/sqlalchemy/sql/elements.py
lib/sqlalchemy/sql/type_api.py
test/sql/test_operators.py