Decimal and numeric options in meta_query do not produce correct MYSQL for floating point numbers comparisons
|Reported by:||ericlewis||Owned by:||wonderboymusic|
If you have a custom post type (shoes) that has floating point numbers (shoe size) as post meta, querying against this post meta with a specific decimal value ( >10.5 ) does not work properly because of the way the values are cast out of the database, and will produce surprising results.
Change History (8)
- Keywords needs-patch added
- Milestone changed from Awaiting Review to 3.6
- Owner set to wonderboymusic
- Status changed from new to accepted