Removed unused branch in SQLUpdateCompiler.as_sql().
Unknown if it was ever needed.
This commit is contained in:
parent
419de7b00d
commit
df1796b13f
|
@ -1135,8 +1135,6 @@ class SQLUpdateCompiler(SQLCompiler):
|
||||||
update_params.append(val)
|
update_params.append(val)
|
||||||
else:
|
else:
|
||||||
values.append('%s = NULL' % qn(name))
|
values.append('%s = NULL' % qn(name))
|
||||||
if not values:
|
|
||||||
return '', ()
|
|
||||||
table = self.query.tables[0]
|
table = self.query.tables[0]
|
||||||
result = [
|
result = [
|
||||||
'UPDATE %s SET' % qn(table),
|
'UPDATE %s SET' % qn(table),
|
||||||
|
|
Loading…
Reference in New Issue