Skip to content

Commit b8c27c7

Browse files
committed
Fixed issue with Paging count SQL - thanks serbrech
1 parent 34a1aa2 commit b8c27c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Massive.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ private static string BuildSelect(string where, string orderBy, int limit) {
320320
/// </summary>
321321
public virtual dynamic Paged(string where = "", string orderBy = "", string columns = "*", int pageSize = 20, int currentPage = 1, params object[] args) {
322322
dynamic result = new ExpandoObject();
323-
var countSQL = string.Format("SELECT COUNT({0}) FROM {1}", PrimaryKeyField, TableName);
323+
var countSQL = string.Format("SELECT COUNT({0}) FROM {1} ", PrimaryKeyField, TableName);
324324
if (String.IsNullOrEmpty(orderBy))
325325
orderBy = PrimaryKeyField;
326326

0 commit comments

Comments
 (0)