Commit e3944004 authored by Marco Pivetta's avatar Marco Pivetta

Hotfix: SQLite supports null limit via `LIMIT -1`

parent f4650e1b
......@@ -657,6 +657,18 @@ class SqlitePlatform extends AbstractPlatform
return $sql;
}
/**
* {@inheritDoc}
*/
protected function doModifyLimitQuery($query, $limit, $offset)
{
if (null === $limit && null !== $offset) {
return $query . ' LIMIT -1 OFFSET ' . $offset;
}
return parent::doModifyLimitQuery($query, $limit, $offset);
}
/**
* {@inheritDoc}
*/
......
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