Fixed sql splitting

Was breaking on ' '
This commit is contained in:
Ingo Schommer 2014-05-08 12:51:32 +12:00
parent bb9994ddca
commit 0a1a318623

View File

@ -271,7 +271,7 @@ class TestSessionEnvironment extends Object {
// Split into individual query commands, removing comments // Split into individual query commands, removing comments
$sqlCmds = array_filter( $sqlCmds = array_filter(
preg_split('/\s*;\s*/', preg_split('/;\n/',
preg_replace(array('/^$\n/m', '/^(\/|#).*$\n/m'), '', $sql) preg_replace(array('/^$\n/m', '/^(\/|#).*$\n/m'), '', $sql)
) )
); );