Fixed comment wording in sql/where.py

Thanks to Simon Charette for noticing this.
This commit is contained in:
Anssi Kääriäinen 2012-07-03 10:29:10 +03:00
parent 925a6936b9
commit ab7f071058
1 changed files with 3 additions and 3 deletions

View File

@ -136,9 +136,9 @@ class WhereNode(tree.Node):
sql_string = conn.join(result) sql_string = conn.join(result)
if sql_string: if sql_string:
if self.negated: if self.negated:
# Note that some backends (Oracle at least) need the # Some backends (Oracle at least) need parentheses
# parentheses even around single experssion in the # around the inner SQL in the negated case, even if the
# negated case. # inner SQL contains just a single expression.
sql_string = 'NOT (%s)' % sql_string sql_string = 'NOT (%s)' % sql_string
elif len(result) > 1: elif len(result) > 1:
sql_string = '(%s)' % sql_string sql_string = '(%s)' % sql_string