Fix postgres offset feature

This commit is contained in:
Anatoliy Chakkaev 2012-09-04 17:33:15 +04:00
parent 5a65b4f1c2
commit d962a22063
1 changed files with 1 additions and 1 deletions

View File

@ -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;