diff --git a/lib/mysql.js b/lib/mysql.js index c34c026..01b2ad5 100644 --- a/lib/mysql.js +++ b/lib/mysql.js @@ -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); } }