不要怂,就是干,撸起袖子干!

Commit 2e84bdda by Sascha Depold

only use offset if no include is used

1 parent 6287a15a
Showing with 1 additions and 1 deletions
...@@ -149,7 +149,7 @@ module.exports = (function() { ...@@ -149,7 +149,7 @@ module.exports = (function() {
query += " GROUP BY <%= group %>" query += " GROUP BY <%= group %>"
} }
if(options.limit) { if(options.limit && !(options.include && (options.limit === 1))) {
if(options.offset) { if(options.offset) {
query += " LIMIT <%= offset %>, <%= limit %>" query += " LIMIT <%= offset %>, <%= limit %>"
} else { } else {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!