#27227: Full text search by UUIDField returns DataError
-------------------------------------+-------------------------------------
     Reporter:  danclaudiupop        |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Database layer       |                  Version:  1.10
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:  UUIDField fts        |             Triage Stage:
  postgres                           |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by charettes):

 We could be extra safe and always cast the expression to text in a
 `CAST(expression, output_field=models.TextField())` but I don't understand
 why you're using FTS here, using `LIKE` through the `__contains` lookup
 would be more appropriate IMHO. In the meant time you can take care of
 casting the expression yourself before annotating your queryset to work
 around your issue.

--
Ticket URL: <https://code.djangoproject.com/ticket/27227#comment:6>
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/071.a91189c0b9d0cf989ad51de0ac89c100%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to