#25427: Trying to do a full text search query on a database field (non model
field), the .annotate(val=RawSQL(...)).filter(val=VAL1) doesn't work.
-------------------------------------+-------------------------------------
     Reporter:  vladiibine           |                    Owner:  nobody
         Type:  Bug                  |                   Status:  closed
    Component:  Database layer       |                  Version:  master
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:  duplicate
     Keywords:  QuerySet.extra       |             Triage Stage:  Accepted
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by timgraham):

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


Comment:

 Closing per comment 3 and per the simple test from the description which
 passes:
 {{{
 from polls.models import Question
 from django.db.models.expressions import RawSQL
 Question.objects.annotate(val=RawSQL('select 3', params=[])).filter(val=3)
 }}}
 Please reopen with details if it remains an issue.

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

Reply via email to