mirror of
https://github.com/django/django.git
synced 2025-11-28 14:37:59 +00:00
Fixed #30412 -- Fixed crash when adding check constraints with OR'ed condition on Oracle and SQLite.
This commit is contained in:
parent
6866c91b63
commit
719b746620
4 changed files with 42 additions and 1 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue