]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Ensure TypeDecorator delegates _set_parent_with_dispatch
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 20 Oct 2016 14:24:40 +0000 (10:24 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 20 Oct 2016 18:14:50 +0000 (14:14 -0400)
commit30bd28fca2091e4b2b093154a14c668c09ae3ccd
tree3fe9647770d95e31f0a4cb2695ae9738cf6df372
parent39ac19510989390dddf7a51f65ec7c8830ec04d1
Ensure TypeDecorator delegates _set_parent_with_dispatch

Ensure TypeDecorator delegates _set_parent_with_dispatch as well as
_set_parent to itself as well as its impl, as the TypeDecorator
class itself may have an active SchemaType implementation as well.

Fixed regression which occurred as a side effect of :ticket:`2919`,
which in the less typical case of a user-defined
:class:`.TypeDecorator` that was also itself an instance of
:class:`.SchemaType` (rather than the implementation being such)
would cause the column attachment events to be skipped for the
type itself.

Change-Id: I0afb498fd91ab7d948e4439e7323a89eafcce0bc
Fixes: #3832
doc/build/changelog/changelog_11.rst
lib/sqlalchemy/sql/base.py
lib/sqlalchemy/sql/type_api.py
test/sql/test_metadata.py