We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bbbb4f6 commit b01ed3aCopy full SHA for b01ed3a
lib/dialects/mssql/index.js
@@ -10,7 +10,7 @@ var Dialect = module.exports = function(builder) {
10
BaseDialect.call(this, builder);
11
12
this.blocks.set('limit', function(params) {
13
- return (params.offset) ? '' : 'TOP(' + builder._pushValue(params.limit) + ')';
+ return (!isNaN(params.offset)) ? '' : 'TOP(' + builder._pushValue(params.limit) + ')';
14
});
15
16
this.blocks.set('offset', function(params) {
0 commit comments