Skip to content

Commit ccdf4e7

Browse files
authored
Bump SQLite version and enable more Java versions in CI (#97)
1 parent cc523d6 commit ccdf4e7

File tree

8 files changed

+14
-14
lines changed

8 files changed

+14
-14
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
fail-fast: false
4444
matrix:
4545
os: [ubuntu-latest, macos-latest, windows-latest]
46-
java-version: [11] # 17, 21
46+
java-version: [11, 17, 21, 25]
4747

4848
steps:
4949
- uses: actions/checkout@v6

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@
193193
<java>
194194
<toggleOffOn/>
195195
<googleJavaFormat>
196-
<version>1.18.1</version>
196+
<version>1.28.0</version>
197197
<style>AOSP</style>
198198
<reflowLongStrings>true</reflowLongStrings>
199199
</googleJavaFormat>

src/main/java/io/roastedroot/sqlite4j/SQLiteConnection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ public void setTransactionIsolation(int level) throws SQLException {
199199
switch (level) {
200200
case java.sql.Connection.TRANSACTION_READ_COMMITTED:
201201
case java.sql.Connection.TRANSACTION_REPEATABLE_READ:
202-
// Fall-through: Spec allows upgrading isolation to a higher level
202+
// Fall-through: Spec allows upgrading isolation to a higher level
203203
case java.sql.Connection.TRANSACTION_SERIALIZABLE:
204204
getDatabase().exec("PRAGMA read_uncommitted = false;", getAutoCommit());
205205
break;

src/main/java/io/roastedroot/sqlite4j/date/FastDateParser.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ private Strategy getStrategy(final String formatField, final Calendar definingCa
499499
return new CopyQuotedStrategy(
500500
formatField.substring(1, formatField.length() - 1));
501501
}
502-
// $FALL-THROUGH$
502+
// $FALL-THROUGH$
503503
default:
504504
return new CopyQuotedStrategy(formatField);
505505
case 'D':
@@ -544,7 +544,7 @@ private Strategy getStrategy(final String formatField, final Calendar definingCa
544544
if (formatField.equals("ZZ")) {
545545
return ISO_8601_STRATEGY;
546546
}
547-
// $FALL-THROUGH$
547+
// $FALL-THROUGH$
548548
case 'z':
549549
return getLocaleSpecificStrategy(Calendar.ZONE_OFFSET, definingCalendar);
550550
}

src/main/java/io/roastedroot/sqlite4j/jdbc3/JDBC3ResultSet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public BigDecimal getBigDecimal(int col) throws SQLException {
186186
case SQLITE_INTEGER:
187187
return BigDecimal.valueOf(safeGetLongCol(col));
188188
case SQLITE_FLOAT:
189-
// avoid double precision
189+
// avoid double precision
190190
default:
191191
final String stringValue = safeGetColumnText(col);
192192
try {

wasm-lib/build.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
1717

1818
# Download the latest SQLite amalgamation 3.48.0 as of today
1919
# rm -rf sqlite-amalgamation
20-
# wget https://www.sqlite.org/2026/sqlite-amalgamation-3510200.zip
21-
# unzip sqlite-amalgamation-3510200.zip
22-
# mv sqlite-amalgamation-3510200 sqlite-amalgamation
23-
# rm sqlite-amalgamation-3510200.zip
20+
# wget https://www.sqlite.org/2026/sqlite-amalgamation-3510300.zip
21+
# unzip sqlite-amalgamation-3510300.zip
22+
# mv sqlite-amalgamation-3510300 sqlite-amalgamation
23+
# rm sqlite-amalgamation-3510300.zip
2424

2525
# Download and install Binaryen for optimizations
2626
# rm -rf binaryen

wasm-lib/libsqlite3.wasm

74 Bytes
Binary file not shown.

wasm-lib/prepare-ci.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ mv wasi-sdk-25.0-x86_64-linux wasi-sdk
99
rm wasi-sdk-25.0-x86_64-linux.tar.gz
1010

1111
rm -rf sqlite-amalgamation
12-
wget https://www.sqlite.org/2026/sqlite-amalgamation-3510200.zip
13-
unzip sqlite-amalgamation-3510200.zip
14-
mv sqlite-amalgamation-3510200 sqlite-amalgamation
15-
rm sqlite-amalgamation-3510200.zip
12+
wget https://www.sqlite.org/2026/sqlite-amalgamation-3510300.zip
13+
unzip sqlite-amalgamation-3510300.zip
14+
mv sqlite-amalgamation-3510300 sqlite-amalgamation
15+
rm sqlite-amalgamation-3510300.zip
1616

1717
rm -rf binaryen
1818
wget https://github.com/WebAssembly/binaryen/releases/download/version_121/binaryen-version_121-x86_64-linux.tar.gz

0 commit comments

Comments
 (0)