Skip to content

Commit a3a8821

Browse files
committed
Update H2 to make it work with recent changes
1 parent 5f2055d commit a3a8821

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,8 @@ jobs:
229229
git clone https://github.com/h2database/h2database
230230
cd h2database/h2
231231
./build.sh jar
232-
cp bin/h2*.jar ../../target/lib/h2*.jar
232+
cp bin/h2-2.0.201.jar ../../target/lib/h2-1.4.200.jar
233+
cp bin/h2-2.0.201.jar ~/.m2/repository/com/h2database/h2/1.4.200/h2-1.4.200.jar
234+
ls -lh ../../target/lib
233235
- name: Run Tests
234236
run: H2_AVAILABLE=true mvn -Dtest=TestH2 test

src/sqlancer/h2/H2Errors.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ public static void addInsertErrors(ExpectedErrors errors) {
1919
}
2020

2121
public static void addExpressionErrors(ExpectedErrors errors) {
22+
errors.add("java.lang.ArithmeticException: BigInteger would overflow supported range");
23+
errors.add("Value too long for column");
2224
errors.add("Numeric value out of range");
2325
errors.add("are not comparable");
2426
errors.add("Data conversion error converting");

src/sqlancer/h2/H2SetGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ private enum Option {
2525
DEFAULT_NULL_ORDERING((r) -> Randomly.fromOptions("LOW", "HIGH", "FIRST", "LAST")), //
2626
DEFAULT_TABLE_TYPE((r) -> Randomly.fromOptions("MEMORY", "CACHED")), //
2727
IGNORECASE((r) -> Randomly.fromOptions("TRUE", "FALSE")), //
28-
LAZY_QUERY_EXECUTION((r) -> Randomly.fromOptions(0, 1)), LOG((r) -> Randomly.fromOptions(0, 1, 2)), //
28+
LAZY_QUERY_EXECUTION((r) -> Randomly.fromOptions(0, 1)), //
2929
MAX_MEMORY_ROWS((r) -> Randomly.getNotCachedInteger(0, 100000)), //
3030
MAX_MEMORY_UNDO((r) -> Randomly.getNotCachedInteger(0, 100000)), //
3131
MAX_OPERATION_MEMORY((r) -> Randomly.getNotCachedInteger(0, 100000)), //

0 commit comments

Comments
 (0)