Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed comment wording in sql/where.py

Thanks to Simon Charette for noticing this.
  • Loading branch information...
commit ab7f0710584a3cbb3737e9a7fd8e3fd21765e594 1 parent 925a693
Anssi Kääriäinen akaariai authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 django/db/models/sql/where.py
6 django/db/models/sql/where.py
View
@@ -136,9 +136,9 @@ def as_sql(self, qn, connection):
sql_string = conn.join(result)
if sql_string:
if self.negated:
- # Note that some backends (Oracle at least) need the
- # parentheses even around single experssion in the
- # negated case.
+ # Some backends (Oracle at least) need parentheses
+ # around the inner SQL in the negated case, even if the
+ # inner SQL contains just a single expression.
sql_string = 'NOT (%s)' % sql_string
elif len(result) > 1:
sql_string = '(%s)' % sql_string
Please sign in to comment.
Something went wrong with that request. Please try again.