summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Morgan <jesse@jesterpm.net>2018-03-25 16:37:41 -0700
committerJesse Morgan <jesse@jesterpm.net>2018-03-25 16:37:41 -0700
commit88a27ef2de5ec37b06e57ccbc40989a0fc1d1af1 (patch)
treea328fa315022ae1412da17cd5a9b8e6dff06d3e0
parent88d28b627c5e365584a6d513f0bdc84d9edffb29 (diff)
Fix OFFSET without LIMIT for H2 Databasefix-failing-test
Carbonado used LIMIT 2^32+1 as a kludge to allow OFFSET without LIMIT in H2 Database, but this approach no longer works. As of version 1.4.191 Beta (2016-01-21), H2 supports OFFSET without LIMIT natively, so use that instead.
-rw-r--r--src/main/java/com/amazon/carbonado/repo/jdbc/H2SupportStrategy.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/amazon/carbonado/repo/jdbc/H2SupportStrategy.java b/src/main/java/com/amazon/carbonado/repo/jdbc/H2SupportStrategy.java
index 61d6516..ac9573f 100644
--- a/src/main/java/com/amazon/carbonado/repo/jdbc/H2SupportStrategy.java
+++ b/src/main/java/com/amazon/carbonado/repo/jdbc/H2SupportStrategy.java
@@ -53,7 +53,7 @@ class H2SupportStrategy extends JDBCSupportStrategy {
return select.concat(" LIMIT ?");
}
} else if (from) {
- return select.concat(" LIMIT 2147483647 OFFSET ?");
+ return select.concat(" OFFSET ?");
} else {
return select;
}