Changeset 33477
- Timestamp:
- 07/29/2015 06:28:41 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.1/src/wp-includes/wp-db.php
r32412 r33477 2659 2659 if ( 'byte' === $value['length']['type'] ) { 2660 2660 // Split the CONVERT() calls by charset, so we can make sure the connection is right 2661 $queries[ $value['charset'] ][ $col ] = $this->prepare( "CONVERT( LEFT( CONVERT( %s USING binary ), % d) USING {$value['charset']} )", $value['value'], $value['length']['length'] );2661 $queries[ $value['charset'] ][ $col ] = $this->prepare( "CONVERT( LEFT( CONVERT( %s USING binary ), %.0f ) USING {$value['charset']} )", $value['value'], $value['length']['length'] ); 2662 2662 } else { 2663 $queries[ $value['charset'] ][ $col ] = $this->prepare( "LEFT( CONVERT( %s USING {$value['charset']} ), % d)", $value['value'], $value['length']['length'] );2663 $queries[ $value['charset'] ][ $col ] = $this->prepare( "LEFT( CONVERT( %s USING {$value['charset']} ), %.0f )", $value['value'], $value['length']['length'] ); 2664 2664 } 2665 2665
Note: See TracChangeset
for help on using the changeset viewer.