summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/ext/mutable.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2014-03-19 11:09:38 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2014-03-19 11:09:38 -0400
commitb9a2b58dd74757184ef94206f09e9db1f536e4cb (patch)
tree58dd9631ac97aa1b0d5e335f3f3eab5c7c872625 /lib/sqlalchemy/ext/mutable.py
parentfd8dbf8e78981187d091dcc25e63ddfb4e56a5f8 (diff)
downloadsqlalchemy-b9a2b58dd74757184ef94206f09e9db1f536e4cb.tar.gz
- Fixed bug in mutable extension as well as
:func:`.attributes.flag_modified` where the change event would not be propagated if the attribute had been reassigned to itself. fixes #2997
Diffstat (limited to 'lib/sqlalchemy/ext/mutable.py')
-rw-r--r--lib/sqlalchemy/ext/mutable.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/sqlalchemy/ext/mutable.py b/lib/sqlalchemy/ext/mutable.py
index 4e574935d..7869e888c 100644
--- a/lib/sqlalchemy/ext/mutable.py
+++ b/lib/sqlalchemy/ext/mutable.py
@@ -437,6 +437,9 @@ class MutableBase(object):
outgoing.
"""
+ if value is oldvalue:
+ return value
+
if not isinstance(value, cls):
value = cls.coerce(key, value)
if value is not None: