From 874eff3db53d7b955725668b7f52e1ff10be08ba Mon Sep 17 00:00:00 2001 From: Bruno Vitorino Date: Mon, 23 Jul 2018 16:45:40 +0200 Subject: [PATCH] Ignore case when matching ARRAY --- lib/Doctrine/DBAL/SQLParserUtils.php | 2 +- tests/Doctrine/Tests/DBAL/SQLParserUtilsTest.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Doctrine/DBAL/SQLParserUtils.php b/lib/Doctrine/DBAL/SQLParserUtils.php index e635af754d9..1066e9537f9 100644 --- a/lib/Doctrine/DBAL/SQLParserUtils.php +++ b/lib/Doctrine/DBAL/SQLParserUtils.php @@ -51,7 +51,7 @@ class SQLParserUtils const ESCAPED_SINGLE_QUOTED_TEXT = "(?:'(?:\\\\\\\\)+'|'(?:[^'\\\\]|\\\\'?|'')*')"; const ESCAPED_DOUBLE_QUOTED_TEXT = '(?:"(?:\\\\\\\\)+"|"(?:[^"\\\\]|\\\\"?)*")'; const ESCAPED_BACKTICK_QUOTED_TEXT = '(?:`(?:\\\\\\\\)+`|`(?:[^`\\\\]|\\\\`?)*`)'; - const ESCAPED_BRACKET_QUOTED_TEXT = '(?= :param1', false, array(57 => 'param1')), // Ticket DBAL-552 array('SELECT [d.ns:col_name] FROM my_table d WHERE [d.date] >= :param1', false, array(57 => 'param1')), // Ticket DBAL-552 array('SELECT * FROM foo WHERE jsonb_exists_any(foo.bar, ARRAY[:foo])', false, array(56 => 'foo')), // Ticket GH-2295 + array('SELECT * FROM foo WHERE jsonb_exists_any(foo.bar, array[:foo])', false, array(56 => 'foo')), array( <<<'SQLDATA' SELECT * FROM foo WHERE