Fix postgres offset feature
This commit is contained in:
parent
5a65b4f1c2
commit
d962a22063
|
@ -261,7 +261,7 @@ PG.prototype.toFilter = function (model, filter) {
|
|||
}
|
||||
|
||||
if (filter.limit) {
|
||||
out += ' LIMIT ' + filter.limit + ' OFFSET ' + (filter.offset || '');
|
||||
out += ' LIMIT ' + filter.limit + ' OFFSET ' + (filter.offset || '0');
|
||||
}
|
||||
|
||||
return out;
|
||||
|
|
Loading…
Reference in New Issue