Ticket #24800: 24800.3.diff
File 24800.3.diff, 697 bytes (added by , 11 years ago) |
---|
-
tests/phpunit/includes/testcase.php
69 69 } 70 70 71 71 function _create_temporary_table( $query ) { 72 $query = trim( $query ); 72 73 if ( 'CREATE TABLE' === substr( $query, 0, 12 ) ) 73 74 return substr_replace( $query, 'CREATE TEMPORARY TABLE', 0, 12 ); 74 75 return $query; … … 75 76 } 76 77 77 78 function _drop_temporary_table( $query ) { 79 $query = trim( $query ); 78 80 if ( 'DROP TABLE' === substr( $query, 0, 10 ) ) 79 81 return substr_replace( $query, 'DROP TEMPORARY TABLE', 0, 10 ); 80 82 return $query;