1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

[2.2.x] Fixed #30412 -- Fixed crash when adding check constraints with OR'ed condition on Oracle and SQLite.

Backport of 719b746620 from master
This commit is contained in:
can
2019-04-30 11:20:41 +03:00
committed by Mariusz Felisiak
parent 54fcdf168a
commit 58391b4d16
4 changed files with 42 additions and 1 deletions

View File

@@ -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(