diff --git a/tests/Parser/SqliteParserTest.php b/tests/Parser/SqliteParserTest.php index 8364ee06..adc0bf94 100644 --- a/tests/Parser/SqliteParserTest.php +++ b/tests/Parser/SqliteParserTest.php @@ -7,4 +7,15 @@ protected function setUp() { $this->parser = new SqliteParser(); } + + public function testIssue183() + { + $parameters = ['d' => 'foo']; + $sql = "SELECT \"a:A\", 'B:b', `c:c`, :d FROM table"; + list ($statement, $values) = $this->rebuild($sql, $parameters); + $expectedStatement = "SELECT \"a:A\", 'B:b', `c:c`, :d FROM table"; + $expectedValues = ['d' => 'foo']; + $this->assertEquals($expectedStatement, $statement); + $this->assertEquals($expectedValues, $values); + } }