@@ -53,6 +53,19 @@ class SQLParserUtilsTest extends \Doctrine\Tests\DbalTestCase
...
@@ -53,6 +53,19 @@ class SQLParserUtilsTest extends \Doctrine\Tests\DbalTestCase
array('SELECT foo::date as date FROM Foo WHERE bar > :start_date AND baz > :start_date',false,array(46=>'start_date',68=>'start_date')),// Ticket GH-259
array('SELECT foo::date as date FROM Foo WHERE bar > :start_date AND baz > :start_date',false,array(46=>'start_date',68=>'start_date')),// Ticket GH-259
array('SELECT `d.ns:col_name` FROM my_table d WHERE `d.date` >= :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 [d.ns:col_name] FROM my_table d WHERE [d.date] >= :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(
<<<'SQLDATA'
SELECT * FROM foo WHERE
bar = ':not_a_param1 ''":not_a_param2"'''
OR bar=:a_param1
OR bar=:a_param2||':not_a_param3'
OR bar=':not_a_param4 '':not_a_param5'' :not_a_param6'