[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
Sat Aug 10 15:35:44 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:  accepted
Component:  Query                                |   Milestone:  3.7
 Severity:  normal                               |     Version:
 Keywords:  has-patch needs-unit-tests needs-    |  Resolution:
  refresh                                        |
-------------------------------------------------+-------------------------

Comment (by ericlewis):

 Replying to [comment:9 wonderboymusic]:
 > we also need to fix `ORDER` logic to `CAST` properly

 This is already covered by the 'orderby' => 'meta_value_num' flag, no?

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


More information about the wp-trac mailing list