Make WordPress Core

Ticket #24800: 24800.3.diff

File 24800.3.diff, 697 bytes (added by jdgrimes, 10 years ago)
  • tests/phpunit/includes/testcase.php

     
    6969        }
    7070
    7171        function _create_temporary_table( $query ) {
     72                $query = trim( $query );
    7273                if ( 'CREATE TABLE' === substr( $query, 0, 12 ) )
    7374                        return substr_replace( $query, 'CREATE TEMPORARY TABLE', 0, 12 );
    7475                return $query;
     
    7576        }
    7677
    7778        function _drop_temporary_table( $query ) {
     79                $query = trim( $query );
    7880                if ( 'DROP TABLE' === substr( $query, 0, 10 ) )
    7981                        return substr_replace( $query, 'DROP TEMPORARY TABLE', 0, 10 );
    8082                return $query;