Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix PostgreSQL query offset (issue #83) #93

Merged
merged 1 commit into from

2 participants

Matt Huggins Anatoliy Chakkaev
Matt Huggins

Fixes issue #83 by including the OFFSET keyword in PostgreSQL queries.

Matt Huggins

@anatoliychakkaev - does anything more need to be done for this pull request to be accepted?

Anatoliy Chakkaev anatoliychakkaev merged commit 562d06b into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 10, 2012
  1. Matt Huggins

    Fix PostgreSQL query offset

    mhuggins authored
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/adapters/postgres.js
2  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;
Something went wrong with that request. Please try again.