[wp-trac] [WordPress Trac] #2709: Category query cleanups

WordPress Trac wp-trac at lists.automattic.com
Sat May 6 22:13:52 GMT 2006


#2709: Category query cleanups
----------------------------+-----------------------------------------------
       Id:  2709            |      Status:  new                     
Component:  Administration  |    Modified:  Sat May  6 22:13:52 2006
 Severity:  major           |   Milestone:  2.1                     
 Priority:  high            |     Version:  2.0.2                   
    Owner:  skeltoac        |    Reporter:  skeltoac                
----------------------------+-----------------------------------------------
 Category queries concatenate category_id conditions.

 How about doing it this way:

 {{{
 ?cat=1,2,3,-4,-5,6,-8,-9

  AND category_id IN (1, 2, 3, 6) AND category_id NOT IN (4, 5, 8, 9)
 }}}

 We also need to put UNIQUE back in due to the way JOIN returns one row for
 every matching post2cat record.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/2709>
WordPress Trac <http://wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list