Commit 6d7a8eba authored by Marco Pivetta's avatar Marco Pivetta

SQLite supports null limit via `LIMIT -1`

parent 5ca7d3ca
......@@ -142,6 +142,12 @@ class SqlitePlatformTest extends AbstractPlatformTestCase
$this->assertEquals('SELECT * FROM user LIMIT 10', $sql);
}
public function testModifyLimitQueryWithOffsetAndEmptyLimit()
{
$sql = $this->_platform->modifyLimitQuery('SELECT * FROM user', null, 10);
$this->assertEquals('SELECT * FROM user LIMIT -1 OFFSET 10', $sql);
}
public function getGenerateAlterTableSql()
{
return array(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment