Changeset 32274
- Timestamp:
- 04/23/2015 11:51:18 AM (10 years ago)
- Location:
- branches/3.8
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.8/src/wp-includes/wp-db.php
r32240 r32274 2104 2104 // Split the CONVERT() calls by charset, so we can make sure the connection is right 2105 2105 $queries[ $value['charset'] ][ $col ] = $this->prepare( "CONVERT( %s USING {$value['charset']} )", $value['value'] ); 2106 unset( $data[ $col ]['db'] ); 2106 2107 } 2107 2108 } -
branches/3.8/tests/phpunit/tests/db/charset.php
r32240 r32274 56 56 ), 57 57 'koi8r' => array( 58 // koi8r is a character set that needs to be checked in MySQL59 58 'charset' => 'koi8r', 60 59 'value' => "\xfdord\xf2ress", 61 60 'expected' => "\xfdord\xf2ress", 62 'db' => true63 61 ), 64 62 'hebrew' => array( 65 // hebrew needs to be checked in MySQL, too66 63 'charset' => 'hebrew', 67 64 'value' => "\xf9ord\xf7ress", 68 65 'expected' => "\xf9ord\xf7ress", 69 'db' => true 66 ), 67 'cp1251' => array( 68 'charset' => 'cp1251', 69 'value' => "\xd8ord\xd0ress", 70 'expected' => "\xd8ord\xd0ress", 71 ), 72 'tis620' => array( 73 'charset' => 'tis620', 74 'value' => "\xccord\xe3ress", 75 'expected' => "\xccord\xe3ress", 70 76 ), 71 77 'false' => array(
Note: See TracChangeset
for help on using the changeset viewer.