Make WordPress Core


Ignore:
Timestamp:
04/21/2015 05:23:44 AM (10 years ago)
Author:
pento
Message:

WPDB: When deciding if a query needs extra sanity checking based on collation, we can quickly return if the query is entirely ASCII characters.

See #32029.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/db/charset.php

    r32232 r32233  
    504504
    505505            $value[0] = "CREATE TABLE $this_table_name {$value[0]}";
    506             $value[2] = "SELECT * FROM $this_table_name";
     506            $value[2] = "SELECT * FROM $this_table_name WHERE a='\xf0\x9f\x98\x88'";
    507507            $value[3] = "DROP TABLE IF EXISTS $this_table_name";
    508508            $value[4] = array(
     509                "SELECT * FROM $this_table_name WHERE a='foo'",
    509510                "SHOW FULL TABLES LIKE $this_table_name",
    510511                "DESCRIBE $this_table_name",
Note: See TracChangeset for help on using the changeset viewer.