#33996: Inconsistent behavior of CheckConstraints validation on None values.
-------------------------------------+-------------------------------------
     Reporter:  James Beith          |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Database layer       |                  Version:  4.1
  (models, ORM)                      |
     Severity:  Release blocker      |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by David Sanders):

 Not to take away from any recommendation from Gagaro or Simon Charette,
 but here's a patch + test demonstrating coalesce solving the issue:
 https://github.com/django/django/compare/main...shangxiao:django:ticket_33996

 Note though this pushes logic back into the SELECT and I haven't an Oracle
 installation to test with.  Solution also naively ignores non-nullable
 fields.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33996#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/010701831d6db8ed-df75c9f3-f328-47d3-894c-56259e42118d-000000%40eu-central-1.amazonses.com.

Reply via email to