diff --git a/django/db/models/sql/compiler.py b/django/db/models/sql/compiler.py index e7ccba6151..4e317d0371 100644 --- a/django/db/models/sql/compiler.py +++ b/django/db/models/sql/compiler.py @@ -1135,8 +1135,6 @@ class SQLUpdateCompiler(SQLCompiler): update_params.append(val) else: values.append('%s = NULL' % qn(name)) - if not values: - return '', () table = self.query.tables[0] result = [ 'UPDATE %s SET' % qn(table),