diff options
| author | Sergey Fedoseev <fedoseev.sergey@gmail.com> | 2017-04-10 22:26:26 +0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-04-10 13:26:26 -0400 |
| commit | e7afef13f594eb667f2709c0ef7bca98452ab32b (patch) | |
| tree | f9c50366cb2a015dacaf44a70cb0e0c4f70717f6 /django/db/models/sql | |
| parent | 64264c9a19b7dae6cd1d5e112177cdbcafafc93c (diff) | |
Fixed #26788 -- Fixed QuerySet.update() crash when updating a geometry to another one.
Diffstat (limited to 'django/db/models/sql')
| -rw-r--r-- | django/db/models/sql/compiler.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/models/sql/compiler.py b/django/db/models/sql/compiler.py index f32d106def..14a727e998 100644 --- a/django/db/models/sql/compiler.py +++ b/django/db/models/sql/compiler.py @@ -1167,7 +1167,7 @@ class SQLUpdateCompiler(SQLCompiler): name = field.column if hasattr(val, 'as_sql'): sql, params = self.compile(val) - values.append('%s = %s' % (qn(name), sql)) + values.append('%s = %s' % (qn(name), placeholder % sql)) update_params.extend(params) elif val is not None: values.append('%s = %s' % (qn(name), placeholder)) |
