Changeset 32415 for branches/3.8/src/wp-includes/wp-db.php
- Timestamp:
- 05/06/2015 09:12:33 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.8/src/wp-includes/wp-db.php
r32406 r32415 1833 1833 1834 1834 $charsets = $columns = array(); 1835 $results = $this->get_results( "SHOW FULL COLUMNS FROM `$table`" ); 1835 1836 $table_parts = explode( '.', $table ); 1837 $table = '`' . implode( '`.`', $table_parts ) . '`'; 1838 $results = $this->get_results( "SHOW FULL COLUMNS FROM $table" ); 1836 1839 if ( ! $results ) { 1837 1840 return new WP_Error( 'wpdb_get_table_charset_failure' ); … … 2406 2409 . '|UPDATE(?:\s+LOW_PRIORITY)?(?:\s+IGNORE)?' 2407 2410 . '|DELETE(?:\s+LOW_PRIORITY|\s+QUICK|\s+IGNORE)*(?:\s+FROM)?' 2408 . ')\s+ `?([\w-]+)`?/is', $query, $maybe ) ) {2409 return $maybe[1];2411 . ')\s+((?:[0-9a-zA-Z$_.`]|[\xC2-\xDF][\x80-\xBF])+)/is', $query, $maybe ) ) { 2412 return str_replace( '`', '', $maybe[1] ); 2410 2413 } 2411 2414 … … 2414 2417 . 'SHOW\s+TABLE\s+STATUS.+(?:LIKE\s+|WHERE\s+Name\s*=\s*)' 2415 2418 . '|SHOW\s+(?:FULL\s+)?TABLES.+(?:LIKE\s+|WHERE\s+Name\s*=\s*)' 2416 . ')\W( [\w-]+)\W/is', $query, $maybe ) ) {2417 return $maybe[1];2419 . ')\W((?:[0-9a-zA-Z$_.`]|[\xC2-\xDF][\x80-\xBF])+)\W/is', $query, $maybe ) ) { 2420 return str_replace( '`', '', $maybe[1] ); 2418 2421 } 2419 2422 … … 2433 2436 . '|(?:GRANT|REVOKE).*ON\s+TABLE' 2434 2437 . '|SHOW\s+(?:.*FROM|.*TABLE)' 2435 . ')\s+\(*\s* `?([\w-]+)`?\s*\)*/is', $query, $maybe ) ) {2436 return $maybe[1];2438 . ')\s+\(*\s*((?:[0-9a-zA-Z$_.`]|[\xC2-\xDF][\x80-\xBF])+)\s*\)*/is', $query, $maybe ) ) { 2439 return str_replace( '`', '', $maybe[1] ); 2437 2440 } 2438 2441
Note: See TracChangeset
for help on using the changeset viewer.