diff options
| author | Tim Graham <timograham@gmail.com> | 2016-10-13 16:56:26 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-10-13 16:56:26 -0400 |
| commit | df1796b13fd0e36253166c47adcfda39ba0ea3df (patch) | |
| tree | 1ae65925a8b9bd463a25955da23c1a7db9769c1f /django | |
| parent | 419de7b00daabf5e9be064198d370cdbf19b5f2d (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.py | 2 |
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), |
