fixing get_context_size for blind update to None in SetUpdateClause

This commit is contained in:
Michael Cyrulnik
2014-05-30 14:30:24 -04:00
parent 635879df63
commit b00f84e284

View File

@@ -200,6 +200,8 @@ class SetUpdateClause(ContainerUpdateClause):
def get_context_size(self):
if not self._analyzed: self._analyze()
if self.previous is None and not (self._assignments or self._additions or self._removals):
return 1
return int(bool(self._assignments)) + int(bool(self._additions)) + int(bool(self._removals))
def update_context(self, ctx):