[wp-trac] [WordPress Trac] #22096: IN meta_query with empty array as meta_value results in invalid database query

WordPress Trac noreply at wordpress.org
Mon Apr 29 09:02:39 UTC 2013


#22096: IN meta_query with empty array as meta_value results in invalid database
query
--------------------------+-----------------------------
 Reporter:  batmoo        |       Owner:  wonderboymusic
     Type:  defect (bug)  |      Status:  accepted
 Priority:  normal        |   Milestone:  3.6
Component:  Query         |     Version:  3.1.3
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+-----------------------------

Comment (by westi):

 In [changeset:"1276/tests"]:
 {{{
 #!CommitTicketReference repository="tests" revision="1276"
 Meta Queries: Add a test case to validate that when generating the meta
 query SQL for an empty value array we don't generate invalid SQL.

 See #22096
 }}}

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


More information about the wp-trac mailing list