Changeset 33276
- Timestamp:
- 07/15/2015 04:32:55 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/wp-db.php
r33259 r33276 2718 2718 if ( 'byte' === $value['length']['type'] ) { 2719 2719 // Split the CONVERT() calls by charset, so we can make sure the connection is right 2720 $queries[ $value['charset'] ][ $col ] = $this->prepare( "CONVERT( LEFT( CONVERT( %s USING binary ), % d) USING {$value['charset']} )", $value['value'], $value['length']['length'] );2720 $queries[ $value['charset'] ][ $col ] = $this->prepare( "CONVERT( LEFT( CONVERT( %s USING binary ), %.0f ) USING {$value['charset']} )", $value['value'], $value['length']['length'] ); 2721 2721 } else { 2722 $queries[ $value['charset'] ][ $col ] = $this->prepare( "LEFT( CONVERT( %s USING {$value['charset']} ), % d)", $value['value'], $value['length']['length'] );2722 $queries[ $value['charset'] ][ $col ] = $this->prepare( "LEFT( CONVERT( %s USING {$value['charset']} ), %.0f )", $value['value'], $value['length']['length'] ); 2723 2723 } 2724 2724
Note: See TracChangeset
for help on using the changeset viewer.