diff options
Diffstat (limited to 'src/main/java/com/iciql/SQLDialectDerby.java')
-rw-r--r-- | src/main/java/com/iciql/SQLDialectDerby.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/iciql/SQLDialectDerby.java b/src/main/java/com/iciql/SQLDialectDerby.java index f954a7c..99405b7 100644 --- a/src/main/java/com/iciql/SQLDialectDerby.java +++ b/src/main/java/com/iciql/SQLDialectDerby.java @@ -40,7 +40,7 @@ public class SQLDialectDerby extends SQLDialectDefault { @Override
public void appendLimitOffset(SQLStatement stat, long limit, long offset) {
// FETCH/OFFSET added in 10.5
- if (databaseVersion >= 10.5f) {
+ if (databaseMajorVersion >= 10 && databaseMinorVersion >= 5) {
if (offset > 0) {
stat.appendSQL(" OFFSET " + offset + (offset == 1 ? " ROW" : " ROWS"));
}
|