Navigation Menu

Skip to content

Commit

Permalink
Added some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
valotas authored and stliu committed Dec 3, 2010
1 parent 480ae72 commit 91e93fd
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -59,11 +59,13 @@ public SQLServer2005Dialect() {

@Override
public int convertToFirstRowValue(int zeroBasedFirstResult) {
return zeroBasedFirstResult + 1;
// Our dialect isn't zero based. The first row should get the number 1
return zeroBasedFirstResult + 1;
}

@Override
public String getLimitString(String query, int offset, int limit) {
// We transform the query to one with an offset and limit if we have an offset and limit to bind
if (offset > 1 || limit > 1) return getLimitString(query, true);
return query;
}
Expand Down

0 comments on commit 91e93fd

Please sign in to comment.