#21001: Non working SQL generated for Oracle when doing .exclude('')
-------------------------------------+-------------------------------------
     Reporter:  greenRocker          |                    Owner:  nobody
         Type:  Bug                  |                   Status:  closed
    Component:  Database layer       |                  Version:  1.4
  (models, ORM)                      |               Resolution:  invalid
     Severity:  Normal               |             Triage Stage:
     Keywords:                       |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by akaariai):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 Oracle treats "" and NULL similarly. So, for Oracle the above query is
 equivalent to `.exclude(account_number__isnull=True)`, that is
 account_number IS NOT NULL. This is basically a limitation in Oracle, and
 I don't see anything Django can do here.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/21001#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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/069.447ae4e057dd677b598550f81d005348%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to