Changeset 37594 for trunk/src/wp-includes/class-wp-meta-query.php
- Timestamp:
- 05/30/2016 04:35:16 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-meta-query.php
r37492 r37594 633 633 634 634 if ( $where ) { 635 $sql_chunks['where'][] = "CAST($alias.meta_value AS {$meta_type}) {$meta_compare} {$where}"; 635 if ( 'CHAR' === $meta_type ) { 636 $sql_chunks['where'][] = "$alias.meta_value {$meta_compare} {$where}"; 637 } else { 638 $sql_chunks['where'][] = "CAST($alias.meta_value AS {$meta_type}) {$meta_compare} {$where}"; 639 } 636 640 } 637 641 }
Note: See TracChangeset
for help on using the changeset viewer.