Skip to content

Commit 121dedf

Browse files
committed
[#2030] Upgrade Db2 JDBC driver to 12.1.0.0
1 parent d93e987 commit 121dedf

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

hibernate-reactive-core/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ dependencies {
5757
testRuntimeOnly "com.mysql:mysql-connector-j:8.0.33"
5858

5959
// JDBC driver for Db2 server, for testing
60-
testRuntimeOnly "com.ibm.db2:jcc:11.5.9.0"
60+
testRuntimeOnly "com.ibm.db2:jcc:12.1.0.0"
6161

6262
// EHCache
6363
testRuntimeOnly ("org.ehcache:ehcache:3.10.8") {

hibernate-reactive-core/src/test/java/org/hibernate/reactive/containers/DB2Database.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class DB2Database implements TestableDatabase {
8787
* TIP: To reuse the same containers across multiple runs, set `testcontainers.reuse.enable=true` in a file located
8888
* at `$HOME/.testcontainers.properties` (create the file if it does not exist).
8989
*/
90-
static final Db2Container db2 = new Db2Container( imageName( "icr.io", "db2_community/db2", "11.5.9.0" ) )
90+
static final Db2Container db2 = new Db2Container( imageName( "icr.io", "db2_community/db2", "12.1.0.0" ) )
9191
.withUsername( DatabaseConfiguration.USERNAME )
9292
.withPassword( DatabaseConfiguration.PASSWORD )
9393
.withDatabaseName( DatabaseConfiguration.DB_NAME )

podman.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ and schema to run the tests:
158158
podman run --rm -e LICENSE=accept --privileged=true --group-add keep-groups \
159159
--name HibernateTestingDB2 -e DBNAME=hreact -e DB2INSTANCE=hreact \
160160
-e DB2INST1_PASSWORD=hreact -e PERSISTENT_HOME=false -e ARCHIVE_LOGS=false \
161-
-e AUTOCONFIG=false -p 50000:50000 docker.io/icr.io/db2_community/db2:11.5.9.0
161+
-e AUTOCONFIG=false -p 50000:50000 docker.io/icr.io/db2_community/db2:12.1.0.0
162162
```
163163

164164
When the database has started, you can run the tests on Db2 with:

tooling/jbang/Db2ReactiveTest.java.qute

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public class {baseName} {
6565
}
6666

6767
@ClassRule
68-
public final static Db2Container database = new Db2Container( imageName( "docker.io", "icr.io/db2_community/db2", "11.5.9.0" ) )
68+
public final static Db2Container database = new Db2Container( imageName( "docker.io", "icr.io/db2_community/db2", "12.1.0.0" ) )
6969
.acceptLicense();
7070

7171
private Mutiny.SessionFactory sessionFactory;

tooling/jbang/ReactiveTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ public String toString() {
230230
enum Database {
231231
POSTGRESQL( () -> new PostgreSQLContainer( "postgres:16.3" ) ),
232232
MYSQL( () -> new MySQLContainer( "mysql:8.4.0" ) ),
233-
DB2( () -> new Db2Container( "docker.io/icr.io/db2_community/db2:11.5.9.0" ).acceptLicense() ),
233+
DB2( () -> new Db2Container( "docker.io/icr.io/db2_community/db2:12.1.0.0" ).acceptLicense() ),
234234
MARIADB( () -> new MariaDBContainer( "mariadb:11.4.2" ) ),
235235
COCKROACHDB( () -> new CockroachContainer( "cockroachdb/cockroach:v24.1.0" ) );
236236

0 commit comments

Comments
 (0)