Changeset 32370 for branches/4.2/src/wp-includes/wp-db.php
- Timestamp:
- 05/06/2015 05:16:54 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.2/src/wp-includes/wp-db.php
r32367 r32370 2267 2267 2268 2268 $charsets = $columns = array(); 2269 $results = $this->get_results( "SHOW FULL COLUMNS FROM `$table`" ); 2269 2270 $table_parts = explode( '.', $table ); 2271 $table = '`' . implode( '`.`', $table_parts ) . '`'; 2272 $results = $this->get_results( "SHOW FULL COLUMNS FROM $table" ); 2270 2273 if ( ! $results ) { 2271 2274 return new WP_Error( 'wpdb_get_table_charset_failure' ); … … 2839 2842 . '|UPDATE(?:\s+LOW_PRIORITY)?(?:\s+IGNORE)?' 2840 2843 . '|DELETE(?:\s+LOW_PRIORITY|\s+QUICK|\s+IGNORE)*(?:\s+FROM)?' 2841 . ')\s+ `?([\w-]+)`?/is', $query, $maybe ) ) {2842 return $maybe[1];2844 . ')\s+((?:[0-9a-zA-Z$_.`]|[\xC2-\xDF][\x80-\xBF])+)/is', $query, $maybe ) ) { 2845 return str_replace( '`', '', $maybe[1] ); 2843 2846 } 2844 2847 … … 2847 2850 . 'SHOW\s+TABLE\s+STATUS.+(?:LIKE\s+|WHERE\s+Name\s*=\s*)' 2848 2851 . '|SHOW\s+(?:FULL\s+)?TABLES.+(?:LIKE\s+|WHERE\s+Name\s*=\s*)' 2849 . ')\W( [\w-]+)\W/is', $query, $maybe ) ) {2850 return $maybe[1];2852 . ')\W((?:[0-9a-zA-Z$_.`]|[\xC2-\xDF][\x80-\xBF])+)\W/is', $query, $maybe ) ) { 2853 return str_replace( '`', '', $maybe[1] ); 2851 2854 } 2852 2855 … … 2866 2869 . '|(?:GRANT|REVOKE).*ON\s+TABLE' 2867 2870 . '|SHOW\s+(?:.*FROM|.*TABLE)' 2868 . ')\s+\(*\s* `?([\w-]+)`?\s*\)*/is', $query, $maybe ) ) {2869 return $maybe[1];2871 . ')\s+\(*\s*((?:[0-9a-zA-Z$_.`]|[\xC2-\xDF][\x80-\xBF])+)\s*\)*/is', $query, $maybe ) ) { 2872 return str_replace( '`', '', $maybe[1] ); 2870 2873 } 2871 2874
Note: See TracChangeset
for help on using the changeset viewer.