#29997: Allow combining SearchQuerys with different configs
-------------------------------------+-------------------------------------
               Reporter:  Jaap Roes  |          Owner:  nobody
                   Type:             |         Status:  assigned
  Cleanup/optimization               |
              Component:  Database   |        Version:  master
  layer (models, ORM)                |
               Severity:  Normal     |       Keywords:
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 The fix for ticket #27143 (SearchQuery is not combinable using more than
 one `&` or `|` operators) introduced some code that raises a `TypeError`
 when trying to combine `SearchQuery` objects that do not share the same
 `config`.

 I'm not sure if this restriction makes sense. In SQL it seems to be
 allowed e.g.:

 `SELECT to_tsquery('simple', 'working') || to_tsquery('english',
 'working');`
 `'working' | 'work'`

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

Reply via email to