Changeset 32413 for branches/4.0/src/wp-includes/wp-db.php
- Timestamp:
- 05/06/2015 09:03:13 PM (11 years ago)
- File:
-
- 1 edited
-
branches/4.0/src/wp-includes/wp-db.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/4.0/src/wp-includes/wp-db.php
r32403 r32413 2246 2246 2247 2247 $charsets = $columns = array(); 2248 $results = $this->get_results( "SHOW FULL COLUMNS FROM `$table`" ); 2248 2249 $table_parts = explode( '.', $table ); 2250 $table = '`' . implode( '`.`', $table_parts ) . '`'; 2251 $results = $this->get_results( "SHOW FULL COLUMNS FROM $table" ); 2249 2252 if ( ! $results ) { 2250 2253 return new WP_Error( 'wpdb_get_table_charset_failure' ); … … 2819 2822 . '|UPDATE(?:\s+LOW_PRIORITY)?(?:\s+IGNORE)?' 2820 2823 . '|DELETE(?:\s+LOW_PRIORITY|\s+QUICK|\s+IGNORE)*(?:\s+FROM)?' 2821 . ')\s+ `?([\w-]+)`?/is', $query, $maybe ) ) {2822 return $maybe[1];2824 . ')\s+((?:[0-9a-zA-Z$_.`]|[\xC2-\xDF][\x80-\xBF])+)/is', $query, $maybe ) ) { 2825 return str_replace( '`', '', $maybe[1] ); 2823 2826 } 2824 2827 … … 2827 2830 . 'SHOW\s+TABLE\s+STATUS.+(?:LIKE\s+|WHERE\s+Name\s*=\s*)' 2828 2831 . '|SHOW\s+(?:FULL\s+)?TABLES.+(?:LIKE\s+|WHERE\s+Name\s*=\s*)' 2829 . ')\W( [\w-]+)\W/is', $query, $maybe ) ) {2830 return $maybe[1];2832 . ')\W((?:[0-9a-zA-Z$_.`]|[\xC2-\xDF][\x80-\xBF])+)\W/is', $query, $maybe ) ) { 2833 return str_replace( '`', '', $maybe[1] ); 2831 2834 } 2832 2835 … … 2846 2849 . '|(?:GRANT|REVOKE).*ON\s+TABLE' 2847 2850 . '|SHOW\s+(?:.*FROM|.*TABLE)' 2848 . ')\s+\(*\s* `?([\w-]+)`?\s*\)*/is', $query, $maybe ) ) {2849 return $maybe[1];2851 . ')\s+\(*\s*((?:[0-9a-zA-Z$_.`]|[\xC2-\xDF][\x80-\xBF])+)\s*\)*/is', $query, $maybe ) ) { 2852 return str_replace( '`', '', $maybe[1] ); 2850 2853 } 2851 2854
Note: See TracChangeset
for help on using the changeset viewer.