mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-13 06:34:50 +00:00
Added some comments
This commit is contained in:
parent
480ae72db6
commit
91e93fd617
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user