[wp-trac] [WordPress Trac] #23033: Decimal and numeric options in meta_query do not produce correct MYSQL for floating point numbers comparisons

WordPress Trac noreply at wordpress.org
Fri Nov 8 23:10:41 UTC 2013


#23033: Decimal and numeric options in meta_query do not produce correct MYSQL for
floating point numbers comparisons
-------------------------------------------------+-------------------------
 Reporter:  ericlewis                            |       Owner:
     Type:  defect (bug)                         |  wonderboymusic
 Priority:  normal                               |      Status:  closed
Component:  Query                                |   Milestone:  Future
 Severity:  normal                               |  Release
 Keywords:  has-patch needs-refresh has-unit-    |     Version:
  tests                                          |  Resolution:  fixed
-------------------------------------------------+-------------------------
Changes (by wonderboymusic):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"26055"]:
 {{{
 #!CommitTicketReference repository="" revision="26055"
 Produce proper `CAST` for `DECIMAL` and `NUMERIC` in Meta Query. Adds a
 bunch of unit tests.

 Props ericlewis.
 Fixes #23033.
 }}}

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


More information about the wp-trac mailing list