Changeset 33277
- Timestamp:
- 07/15/2015 04:39:19 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.2/src/wp-includes/wp-db.php
r33260 r33277 2683 2683 if ( 'byte' === $value['length']['type'] ) { 2684 2684 // Split the CONVERT() calls by charset, so we can make sure the connection is right 2685 $queries[ $value['charset'] ][ $col ] = $this->prepare( "CONVERT( LEFT( CONVERT( %s USING binary ), % d) USING {$value['charset']} )", $value['value'], $value['length']['length'] );2685 $queries[ $value['charset'] ][ $col ] = $this->prepare( "CONVERT( LEFT( CONVERT( %s USING binary ), %.0f ) USING {$value['charset']} )", $value['value'], $value['length']['length'] ); 2686 2686 } else { 2687 $queries[ $value['charset'] ][ $col ] = $this->prepare( "LEFT( CONVERT( %s USING {$value['charset']} ), % d)", $value['value'], $value['length']['length'] );2687 $queries[ $value['charset'] ][ $col ] = $this->prepare( "LEFT( CONVERT( %s USING {$value['charset']} ), %.0f )", $value['value'], $value['length']['length'] ); 2688 2688 } 2689 2689
Note: See TracChangeset
for help on using the changeset viewer.