summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2016-10-13 16:56:26 -0400
committerGitHub <noreply@github.com>2016-10-13 16:56:26 -0400
commitdf1796b13fd0e36253166c47adcfda39ba0ea3df (patch)
tree1ae65925a8b9bd463a25955da23c1a7db9769c1f /django
parent419de7b00daabf5e9be064198d370cdbf19b5f2d (diff)
Removed unused branch in SQLUpdateCompiler.as_sql().
Unknown if it was ever needed.
Diffstat (limited to 'django')
-rw-r--r--django/db/models/sql/compiler.py2
1 files changed, 0 insertions, 2 deletions
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),