Commit 55813bd4 authored by Marco Pivetta's avatar Marco Pivetta

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

parent 6d7a8eba
...@@ -595,6 +595,18 @@ class SqlitePlatform extends AbstractPlatform ...@@ -595,6 +595,18 @@ class SqlitePlatform extends AbstractPlatform
return $sql; 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} * {@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