Skip to content

Commit

Permalink
critical: fixed mixed up SKIP,LIMIT in sql adapters
Browse files Browse the repository at this point in the history
  • Loading branch information
der-On committed Feb 3, 2016
1 parent b7c285e commit 4dd42a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/adapters/sql/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 119,7 @@ utils.mixin(Adapter.prototype, new (function () {
sql = 'LIMIT ' limit '\n';
}
if (skip && limit) {
sql = 'LIMIT ' skip ' OFFSET ' limit '\n';
sql = 'LIMIT ' limit ' OFFSET ' skip '\n';
}
sql = ';';

Expand Down

0 comments on commit 4dd42a4

Please sign in to comment.