#23460: Allow a literal `%s` to be passed through extra select
----------------------------------------------+----------------------
     Reporter:  mattrobenolt                  |      Owner:  nobody
         Type:  Uncategorized                 |     Status:  new
    Component:  Database layer (models, ORM)  |    Version:  1.7
     Severity:  Normal                        |   Keywords:  queryset
 Triage Stage:  Unreviewed                    |  Has patch:  1
Easy pickings:  0                             |      UI/UX:  0
----------------------------------------------+----------------------
 Right now, if you try and do something like this:

 {{{
 Foo.objects.extra(select={'foo': "'%%s"'})
 }}}

 or

 {{{
 Foo.objects.extra(select={'foo': '"%s"'})
 }}}

 it blows up because it tries to convert the %s into a parameter

 It's expected to allow %%s as an escape sequence.

--
Ticket URL: <https://code.djangoproject.com/ticket/23460>
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/055.3e85a5f176ef5ce4a6ed02d7778eda6c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to