From 7638b887f095a3e79294713db9f344c0afff5595 Mon Sep 17 00:00:00 2001 From: Jens Schauder Date: Thu, 25 Sep 2025 10:27:34 +0200 Subject: [PATCH] Upgrade H2 to 2.4.240 The data type DATETIME seems to be no longer supported and got replaced by TIMESTAMP in all affected tests. Closes #2142 See https://github.com/h2database/h2database/issues/4285 --- pom.xml | 2 +- ...ryPropertyConversionIntegrationTests-h2.sql | 18 ++++++++++++++++-- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 374c8d00a..b3e58d980 100644 --- a/pom.xml +++ b/pom.xml @@ -32,7 +32,7 @@ 12.1.2.0 - 2.3.232 + 2.4.240 5.1.0 2.7.3 3.5.5 diff --git a/spring-data-jdbc/src/test/resources/org.springframework.data.jdbc.repository/JdbcRepositoryPropertyConversionIntegrationTests-h2.sql b/spring-data-jdbc/src/test/resources/org.springframework.data.jdbc.repository/JdbcRepositoryPropertyConversionIntegrationTests-h2.sql index 3eb1994c2..3b88b16c0 100644 --- a/spring-data-jdbc/src/test/resources/org.springframework.data.jdbc.repository/JdbcRepositoryPropertyConversionIntegrationTests-h2.sql +++ b/spring-data-jdbc/src/test/resources/org.springframework.data.jdbc.repository/JdbcRepositoryPropertyConversionIntegrationTests-h2.sql @@ -1,2 +1,16 @@ -CREATE TABLE ENTITY_WITH_COLUMNS_REQUIRING_CONVERSIONS ( id_Timestamp DATETIME PRIMARY KEY, bool boolean, SOME_ENUM VARCHAR(100), big_Decimal DECIMAL(1025), big_Integer DECIMAL(20), date DATETIME, local_Date_Time DATETIME, zoned_Date_Time VARCHAR(30)); -CREATE TABLE ENTITY_WITH_COLUMNS_REQUIRING_CONVERSIONS_RELATION ( id_Timestamp DATETIME NOT NULL PRIMARY KEY, data VARCHAR(100)); +CREATE TABLE ENTITY_WITH_COLUMNS_REQUIRING_CONVERSIONS +( + id_Timestamp TIMESTAMP PRIMARY KEY, + bool boolean, + SOME_ENUM VARCHAR(100), + big_Decimal DECIMAL(1025), + big_Integer DECIMAL(20), + date TIMESTAMP, + local_Date_Time TIMESTAMP, + zoned_Date_Time VARCHAR(30) +); +CREATE TABLE ENTITY_WITH_COLUMNS_REQUIRING_CONVERSIONS_RELATION +( + id_Timestamp TIMESTAMP NOT NULL PRIMARY KEY, + data VARCHAR(100) +);