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

This commit is contained in:
can 2019-04-30 11:20:41 +03:00 committed by Mariusz Felisiak
parent 6866c91b63
commit 719b746620
4 changed files with 42 additions and 1 deletions

View file

@ -1338,7 +1338,7 @@ class Query(BaseExpression):
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(