Changeset 33259
- Timestamp:
- 07/14/2015 10:18:57 AM (9 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/wp-db.php
r33055 r33259 2869 2869 $query = ltrim( $query, "\r\n\t (" ); 2870 2870 2871 /* 2872 * Strip everything between parentheses except nested selects and use only 1,000 2873 * chars of the query. 2874 */ 2875 $query = preg_replace( '/\((?!\s*select)[^(]*?\)/is', '()', substr( $query, 0, 1000 ) ); 2871 // Strip everything between parentheses except nested selects. 2872 $query = preg_replace( '/\((?!\s*select)[^(]*?\)/is', '()', $query ); 2876 2873 2877 2874 // Quickly match most common queries. -
trunk/tests/phpunit/tests/db.php
r32368 r33259 534 534 "SELECT * FROM `$table`", 535 535 536 "SELECT * FROM (SELECT * FROM $table) as subquery", 537 536 538 "INSERT $table", 537 539 "INSERT IGNORE $table", … … 628 630 "SHOW CREATE TABLE $table", 629 631 "SHOW INDEX FROM $table", 632 633 // @ticket 32763 634 "SELECT " . str_repeat( 'a', 10000 ) . " FROM (SELECT * FROM $table) as subquery", 630 635 ); 631 636
Note: See TracChangeset
for help on using the changeset viewer.