--- /dev/null +++ ../lib/Doctrine/DBAL/SQLParserUtils.php @@ -119,10 +119,22 @@ $carry = []; - foreach (self::getUnquotedStatementFragments($statement) as $fragment) { - preg_match_all('/' . $token . '/', $fragment[0], $matches, PREG_OFFSET_CAPTURE); - foreach ($matches[0] as $placeholder) { - $collector($placeholder[0], $placeholder[1], $fragment[1], $carry); + if (preg_match("/(ARRAY|'{2,})/i", $statement) === 0) { + preg_match_all( + "/(?