mirror of
https://github.com/silverstripe/silverstripe-testsession
synced 2024-10-22 14:06:00 +02:00
Fixed sql splitting
Was breaking on ' '
This commit is contained in:
parent
bb9994ddca
commit
0a1a318623
@ -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)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user