summaryrefslogtreecommitdiff
path: root/django/db/models/sql/query.py
diff options
context:
space:
mode:
authorcan <cansarigol@derinbilgi.com.tr>2019-04-30 11:20:41 +0300
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2019-04-30 13:43:02 +0200
commit58391b4d164ac83b8001a2ec70f3b1e4d39e4681 (patch)
tree21f48cddd339198f73735d167729e46edc18e0e4 /django/db/models/sql/query.py
parent54fcdf168ab1f53fbdb7cd63f916bd44845a78d3 (diff)
[2.2.x] Fixed #30412 -- Fixed crash when adding check constraints with OR'ed condition on Oracle and SQLite.
Backport of 719b7466203181066d9537d2e3bec687dffc9f41 from master
Diffstat (limited to 'django/db/models/sql/query.py')
-rw-r--r--django/db/models/sql/query.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/models/sql/query.py b/django/db/models/sql/query.py
index ffa8db86f2..b99f0e90ef 100644
--- a/django/db/models/sql/query.py
+++ b/django/db/models/sql/query.py
@@ -1309,7 +1309,7 @@ class Query:
if isinstance(child, Node):
child_clause, needed_inner = self._add_q(
child, used_aliases, branch_negated,
- current_negated, allow_joins, split_subq)
+ current_negated, allow_joins, split_subq, simple_col)
joinpromoter.add_votes(needed_inner)
else:
child_clause, needed_inner = self.build_filter(