From f3abbf13b6e8165142995f5bc87c3837666168b3 Mon Sep 17 00:00:00 2001 From: Matt Huggins Date: Sun, 10 Jun 2012 19:10:18 -0400 Subject: [PATCH] Fix PostgreSQL query offset --- lib/adapters/postgres.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/adapters/postgres.js b/lib/adapters/postgres.js index 8bbb8d54..7cbb767b 100644 --- a/lib/adapters/postgres.js +++ b/lib/adapters/postgres.js @@ -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;