Skip to content

Commit

Permalink
Fixes #301 - Whitespace issue
Browse files Browse the repository at this point in the history
  • Loading branch information
richardhopton committed Aug 15, 2013
1 parent 8242a66 commit ea19abe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Simple.Data.SqlServer/SqlQueryPager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ public IEnumerable<string> ApplyPaging(string sql, string[] keys, int skip, int
var rest = Regex.Replace(fromEtc, @"^from (\[.*?\]\.\[.*?\])", @"");
builder.Append(rest);

builder.AppendFormat(" AND [_#_] BETWEEN {0} AND {1} ", skip + 1, skip + take);
builder.Append(groupBy);
builder.AppendFormat(" AND [_#_] BETWEEN {0} AND {1}", skip + 1, skip + take);
if (!string.IsNullOrWhiteSpace(groupBy))
builder.AppendFormat(" {0}", groupBy);
yield return builder.ToString();
}

Expand Down

0 comments on commit ea19abe

Please sign in to comment.