Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

mysql assignment operator := should not be treated as a (missing) par…

…ameter
  • Loading branch information...
commit 1105261f0533e9853b9fa8f1c2491ab6b547fdc8 1 parent 6ace93c
@roverwolf authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  tests/Doctrine/Tests/DBAL/SQLParserUtilsTest.php
View
2  tests/Doctrine/Tests/DBAL/SQLParserUtilsTest.php
@@ -35,6 +35,8 @@ static public function dataGetPlaceholderPositions()
array('SELECT ":foo" FROM Foo WHERE bar IN (:name1, :name2)', false, array(37 => 'name1', 45 => 'name2')),
array("SELECT ':foo' FROM Foo WHERE bar IN (:name1, :name2)", false, array(37 => 'name1', 45 => 'name2')),
array('SELECT :foo_id', false, array(7 => 'foo_id')), // Ticket DBAL-231
+ array('SELECT @rank := 1', false, array()), // Ticket DBAL-398
+ array('SELECT @rank := 1 AS rank, :foo AS foo FROM :bar', false, array(27 => 'foo', 44 => 'bar')), // Ticket DBAL-398
);
}

0 comments on commit 1105261

Please sign in to comment.
Something went wrong with that request. Please try again.