Browse Source

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
pull/2148/head
Jens Schauder 3 months ago
parent
commit
7638b887f0
No known key found for this signature in database
GPG Key ID: 2BE5D185CD2A1CE6
  1. 2
      pom.xml
  2. 18
      spring-data-jdbc/src/test/resources/org.springframework.data.jdbc.repository/JdbcRepositoryPropertyConversionIntegrationTests-h2.sql

2
pom.xml

@ -32,7 +32,7 @@ @@ -32,7 +32,7 @@
<!-- databases and jdbc drivers -->
<!-- note that these currently do not control the versions of databases used via Testcontainers for testing -->
<db2.version>12.1.2.0</db2.version>
<h2.version>2.3.232</h2.version>
<h2.version>2.4.240</h2.version>
<hikari.version>5.1.0</hikari.version>
<hsqldb.version>2.7.3</hsqldb.version>
<mariadb-java-client.version>3.5.5</mariadb-java-client.version>

18
spring-data-jdbc/src/test/resources/org.springframework.data.jdbc.repository/JdbcRepositoryPropertyConversionIntegrationTests-h2.sql

@ -1,2 +1,16 @@ @@ -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)
);

Loading…
Cancel
Save