]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Remove special rule for TypeDecorator of TypeDecorator
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 5 Jan 2021 13:48:36 +0000 (08:48 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 6 Jan 2021 02:57:06 +0000 (21:57 -0500)
commit26bb6969e60438c081370ebc498bdd4510b7fc75
tree33cfc883a34c78c2cdefb8b9b9d3148187c207c9
parent0f5875f6c17f4584951eeffc31b1849b79222a46
Remove special rule for TypeDecorator of TypeDecorator

Removing this check for "TypeDecorator" in impl seems to not
break anything and allows TypeDecorator.with_variant() to
work correctly.   The line has been traced back to 2007 and
does not appear to have relevance today.

Fixed bug where making use of the :meth:`.TypeEngine.with_variant` method
on a :class:`.TypeDecorator` type would fail to take into account the
dialect-specific mappings in use, due to a rule in :class:`.TypeDecorator`
that was instead attempting to check for chains of :class:`.TypeDecorator`
instances.

Fixes: #5816
Change-Id: Ic86d9d985810e3050f15972b4841108acca2fa3e
(cherry picked from commit 458f83c6d213a80c2f0353b96421de36aee705f3)
doc/build/changelog/unreleased_13/5816.rst [new file with mode: 0644]
lib/sqlalchemy/sql/type_api.py
test/sql/test_types.py