]> 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>
Thu, 10 Aug 2023 19:08:51 +0000 (19:08 +0000)
commitccefbc643ee0e74f69977b34b91a9a93c7f77f09
treef62000689363fb07834db09383f1286f3d1bbbb8
parent403902a42e7eac17436c3788b292d70cb7ac59f5
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
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