Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit a3c8fb2

Browse files
committed
fix mssql + add sqlLimit tests
1 parent e4bca5d commit a3c8fb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ServiceStack.OrmLite.SqlServer/SqlServerOrmLiteDialectProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ public override string SqlCurrency(string fieldOrValue, string currencySymbol) =
363363
public override string SqlLimit(int? offset = null, int? rows = null) => rows == null && offset == null
364364
? ""
365365
: rows != null
366-
? "OFFSET " + offset.GetValueOrDefault() + " ROWS FETCH NEXT " + rows
366+
? "OFFSET " + offset.GetValueOrDefault() + " ROWS FETCH NEXT " + rows + " ROWS ONLY"
367367
: "OFFSET " + offset.GetValueOrDefault(int.MaxValue) + " ROWS";
368368

369369
protected SqlConnection Unwrap(IDbConnection db) => (SqlConnection)db.ToDbConnection();

0 commit comments

Comments
 (0)