Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix PostgreSQL query offset (issue #83) #93

Merged
merged 1 commit into from

2 participants

@mhuggins

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

@mhuggins

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

@anatoliychakkaev anatoliychakkaev merged commit 562d06b into 1602:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 10, 2012
  1. @mhuggins

    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
View
2  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;
Something went wrong with that request. Please try again.