[wp-trac] [WordPress Trac] #17011: Introduce 'relation' arg to meta_query

WordPress Trac wp-trac at lists.automattic.com
Sat Apr 23 18:52:43 UTC 2011


#17011: Introduce 'relation' arg to meta_query
-------------------------------------+------------------
 Reporter:  scribu                   |       Owner:
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  3.2
Component:  Query                    |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+------------------

Comment (by greuben):

 Replying to [comment:12 scribu]:
 > Ah, but the DISTINCT is still unnecessary, since there's a GROUP BY ID
 clause automatically added on any taxonomy or meta query.

 Yes, but currently GROUP BY is set only if {{{meta_key}}} is set, if
 queried using {{{meta_query}}} there is no GROUP BY and hence DISTINCT is
 needed. However, DISTINCT is unnecessary once #17165 goes in and the patch
 will need refresh.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17011#comment:13>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list