From 0a1a31862327437bff8f3abd63cf4c38d586975c Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Thu, 8 May 2014 12:51:32 +1200 Subject: [PATCH] Fixed sql splitting Was breaking on ' ' --- code/TestSessionEnvironment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/TestSessionEnvironment.php b/code/TestSessionEnvironment.php index fec15ba..1ca91f1 100644 --- a/code/TestSessionEnvironment.php +++ b/code/TestSessionEnvironment.php @@ -271,7 +271,7 @@ class TestSessionEnvironment extends Object { // Split into individual query commands, removing comments $sqlCmds = array_filter( - preg_split('/\s*;\s*/', + preg_split('/;\n/', preg_replace(array('/^$\n/m', '/^(\/|#).*$\n/m'), '', $sql) ) );