Fixes #21
Changed param for using offset with limit to 'skip' so as to match JDB core. (Unit test to be pushed to JDB core.)
This commit is contained in:
parent
8921b54a1a
commit
d7112909eb
|
@ -234,7 +234,7 @@ MySQL.prototype.all = function all(model, filter, callback) {
|
|||
}
|
||||
|
||||
if (filter.limit) {
|
||||
sql += ' ' + buildLimit(filter.limit, filter.offset || 0);
|
||||
sql += ' ' + buildLimit(filter.limit, filter.skip || 0);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue