Changes between Initial Version and Version 1 of Ticket #47286
- Timestamp:
- 05/20/2019 11:48:52 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #47286 – Description
initial v1 24 24 }}} 25 25 26 27 26 result: 28 29 **AND ( 30 ( wp_postmeta.meta_key = 'key' AND ''wp_postmeta.meta_value = '10''' ) 31 ) AND wp_posts.post_type = 'post' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'private')** 27 {{{ 28 AND ( 29 ( wp_postmeta.meta_key = 'key' AND wp_postmeta.meta_value = '10' ) 30 ) AND wp_posts.post_type = 'post' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'private') 31 }}} 32 32 33 33 2. using 'type' => numeric results in 34 **AND ( 35 ( wp_postmeta.meta_key = 'key' AND ''CAST(wp_postmeta.meta_value AS SIGNED)'' = '10' ) 36 ) AND wp_posts.post_type = 'post' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'private')"** 34 35 {{{ 36 AND ( 37 ( wp_postmeta.meta_key = 'key' AND CAST(wp_postmeta.meta_value AS SIGNED) = '10' ) 38 ) AND wp_posts.post_type = 'post' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'private')" 39 }}} 37 40 38 41 which doesn't solve the problem + why casting the field and not the value?
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)