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

WordPress Trac wp-trac at lists.automattic.com
Mon Apr 18 13:37:58 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:6 scribu]:
 > > If DISTINCT isn't used the result includes same posts again and
 again(because of inner joins)
 >
 > Ok, but doesn't this happen without the patch as well? i.e. with the
 default AND relation.

 IIRC only OR'ed queries with inner joins cause that problem.

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


More information about the wp-trac mailing list