Skip to content

Commit

Permalink
mysql assignment operator := should not be treated as a (missing) par…
Browse files Browse the repository at this point in the history
…ameter
  • Loading branch information
roverwolf committed Dec 18, 2012
1 parent 6ace93c commit 1105261
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/Doctrine/Tests/DBAL/SQLParserUtilsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
}

Expand Down

0 comments on commit 1105261

Please sign in to comment.