mirror of
https://github.com/silverstripe/silverstripe-sqlite3
synced 2024-10-22 17:05:37 +02:00
Fix null offset
This commit is contained in:
parent
e4960193b8
commit
4a91d999ee
@ -81,6 +81,8 @@ class SQLite3QueryBuilder extends DBQueryBuilder {
|
|||||||
$clause = "{$nl}";
|
$clause = "{$nl}";
|
||||||
if($limit['limit'] !== null) {
|
if($limit['limit'] !== null) {
|
||||||
$clause .= "LIMIT {$limit['limit']} ";
|
$clause .= "LIMIT {$limit['limit']} ";
|
||||||
|
} else {
|
||||||
|
$clause .= "LIMIT -1 ";
|
||||||
}
|
}
|
||||||
|
|
||||||
if(isset($limit['start']) && is_numeric($limit['start']) && $limit['start'] !== 0) {
|
if(isset($limit['start']) && is_numeric($limit['start']) && $limit['start'] !== 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user