Merge pull request #9 from kinglozzer/fix-null-offset

Fix null offset
This commit is contained in:
Damian Mooyman 2015-05-05 09:50:49 +12:00
commit dda4c3ab48

View File

@ -81,6 +81,8 @@ class SQLite3QueryBuilder extends DBQueryBuilder {
$clause = "{$nl}";
if($limit['limit'] !== null) {
$clause .= "LIMIT {$limit['limit']} ";
} else {
$clause .= "LIMIT -1 ";
}
if(isset($limit['start']) && is_numeric($limit['start']) && $limit['start'] !== 0) {