]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
check for adapt to same class in AbstractRange
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 21 Dec 2022 21:10:34 +0000 (16:10 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 21 Dec 2022 21:12:53 +0000 (16:12 -0500)
commitb973cbd8939f2cc0e29c668fffd507958c3e455a
treec42e547b00e50ed06fe1601b09fbb3053ab53b6e
parent9749a394b19e78086103b3c01144a03061bb9c75
check for adapt to same class in AbstractRange

Fixed regression where newly revised PostgreSQL range types such as
:class:`_postgresql.INT4RANGE` could not be set up as the impl of a
:class:`.TypeDecorator` custom type, instead raising a ``TypeError``.

Fixes: #9020
Change-Id: Ib881c3c7f63d000f49a09185a8663659a9970aa9
doc/build/changelog/unreleased_20/9020.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/postgresql/ranges.py
test/dialect/postgresql/test_types.py
test/sql/test_types.py