summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2017-12-04 16:40:20 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2017-12-04 16:49:02 -0500
commit36d0a27770efdebb0b1891083cb72d8ac65c4788 (patch)
tree35610c2d340d28d473655f84d02f23620b32dc8a /lib/sqlalchemy/sql
parente447582b8575eaf165f02864a4b0b977930b3a52 (diff)
downloadsqlalchemy-36d0a27770efdebb0b1891083cb72d8ac65c4788.tar.gz
Propagate attachment events for ARRAY
Fixed regression in :class:`.ARRAY` datatype caused by :ticket:`3964`, which is essentially the same issue as that of :ticket:`3832`, where column attachment events for :class:`.ARRAY` would not be invoked. This breaks the use case of using declarative mixins that declare a :class:`.Column` which makes use of :meth:`.MutableList.as_mutable`. Change-Id: If8c57615860883837f6cf72661e46180a77778c1 Fixes: #4141
Diffstat (limited to 'lib/sqlalchemy/sql')
-rw-r--r--lib/sqlalchemy/sql/sqltypes.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sqlalchemy/sql/sqltypes.py b/lib/sqlalchemy/sql/sqltypes.py
index 2a30bf832..872ccfe74 100644
--- a/lib/sqlalchemy/sql/sqltypes.py
+++ b/lib/sqlalchemy/sql/sqltypes.py
@@ -2411,6 +2411,8 @@ class ARRAY(SchemaEventTarget, Indexable, Concatenable, TypeEngine):
def _set_parent_with_dispatch(self, parent):
"""Support SchemaEventTarget"""
+ super(ARRAY, self)._set_parent_with_dispatch(parent)
+
if isinstance(self.item_type, SchemaEventTarget):
self.item_type._set_parent_with_dispatch(parent)