Permalink
Browse files

Merge pull request #93 from mhuggins/pg-offset

Fix PostgreSQL query offset (issue #83)
  • Loading branch information...
2 parents 028049f + f3abbf1 commit 562d06b83ffc1e8f7938436489eda5fcab360b73 @1602 committed Aug 31, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/adapters/postgres.js
View
@@ -261,7 +261,7 @@ PG.prototype.toFilter = function (model, filter) {
}
if (filter.limit) {
- out += ' LIMIT ' + filter.limit + ' ' + (filter.offset || '');
+ out += ' LIMIT ' + filter.limit + ' OFFSET ' + (filter.offset || '');
}
return out;

0 comments on commit 562d06b

Please sign in to comment.