1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Refs #33996 -- Updated CheckConstraint validation on NULL values on Oracle 23c+.

Oracle 23c supports comparing boolean expressions.
This commit is contained in:
Mariusz Felisiak
2024-03-15 12:34:54 +01:00
committed by GitHub
parent cbf1e87398
commit 36a000858b
2 changed files with 7 additions and 4 deletions

View File

@@ -131,10 +131,10 @@ ensures the age field is never less than 18.
name="age_gte_18_and_others",
)
.. admonition:: Oracle
.. admonition:: Oracle < 23c
Checks with nullable fields on Oracle must include a condition allowing for
``NULL`` values in order for :meth:`validate() <BaseConstraint.validate>`
Checks with nullable fields on Oracle < 23c must include a condition
allowing for ``NULL`` values in order for :meth:`~BaseConstraint.validate`
to behave the same as check constraints validation. For example, if ``age``
is a nullable field::