#30986: Using conditional RawSQL's in QuerySet.filter() crashes on Oracle.
-------------------------------------+-------------------------------------
               Reporter:  felixxm    |          Owner:  felixxm
                   Type:  Bug        |         Status:  assigned
              Component:  Database   |        Version:  3.0
  layer (models, ORM)                |
               Severity:  Release    |       Keywords:  oracle
  blocker                            |
           Triage Stage:  Accepted   |      Has patch:  0
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 Using conditional `RawSQL`'s in `QuerySet.filter()` crashes on Oracle,
 e.g.
 {{{
 Company.objects.filter(
     RawSQL('num_employees > %s', (3,),
 output_field=models.BooleanField()),
 )
 }}}
 raises `django.db.utils.DatabaseError: ORA-00933: SQL command not properly
 ended`.

 This as a release blocker because using conditional expressions in
 `QuerySet.filter()` is a new feature added in #25367.

 Reported in [https://github.com/django/django/pull/12067 PR12067].

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30986>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/050.e5c273350f342e5a960ece291054a56f%40djangoproject.com.

Reply via email to