#27627: OneToOneField doesn't allow multiple records with NULL value on 
Microsoft
SQL Server
-------------------------------------+-------------------------------------
     Reporter:  Ryan Schave          |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Database layer       |                  Version:
  (models, ORM)                      |
     Severity:  Normal               |               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 Simon Charette):

 I'm pretty sure that's a bug in the MSSQL server backend used by the
 reporter here.

 MSSQL server diverges from the SQL standard by disallowing multiple `NULL`
 values in column with a `UNIQUE` index. The backend should make sure to
 create conditional indexes excluding `NULL` columns for fields marked
 `null=True`.

--
Ticket URL: <https://code.djangoproject.com/ticket/27627#comment:2>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.0a0accf91de80ef3676265e2b5a8ccb9%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to