Skip to content

Commit 696c04a

Browse files
dependabot[bot]ebyhr
authored andcommitted
Bump com.h2database:h2 from 1.4.192 to 2.4.240
Bumps [com.h2database:h2](https://github.com/h2database/h2database) from 1.4.192 to 2.4.240. - [Release notes](https://github.com/h2database/h2database/releases) - [Commits](h2database/h2database@version-1.4.192...version-2.4.240) --- updated-dependencies: - dependency-name: com.h2database:h2 dependency-version: 2.4.240 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]>
1 parent fe8276f commit 696c04a

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

gateway-ha/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@
340340
<dependency>
341341
<groupId>com.h2database</groupId>
342342
<artifactId>h2</artifactId>
343-
<version>1.4.192</version>
343+
<version>2.4.240</version>
344344
<scope>test</scope>
345345
</dependency>
346346

gateway-ha/src/main/resources/gateway-ha-persistence-mysql.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ CREATE TABLE IF NOT EXISTS resource_groups_global_properties (
6666

6767
CREATE TABLE IF NOT EXISTS exact_match_source_selectors (
6868
resource_group_id VARCHAR(256) NOT NULL,
69-
update_time DATETIME NOT NULL,
69+
update_time TIMESTAMP NOT NULL,
7070

7171
-- Selector fields which must exactly match a query
7272
source VARCHAR(512) NOT NULL,
@@ -75,4 +75,4 @@ CREATE TABLE IF NOT EXISTS exact_match_source_selectors (
7575

7676
PRIMARY KEY (environment, source, query_type),
7777
UNIQUE (source, environment, query_type, resource_group_id)
78-
);
78+
);

gateway-ha/src/test/java/io/trino/gateway/ha/HaGatewayTestUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public static void prepareMockBackend(
7272

7373
public static void seedRequiredData(String h2DbFilePath)
7474
{
75-
String jdbcUrl = "jdbc:h2:" + h2DbFilePath;
75+
String jdbcUrl = "jdbc:h2:" + h2DbFilePath + ";NON_KEYWORDS=NAME,VALUE";
7676
Jdbi jdbi = Jdbi.create(jdbcUrl, "sa", "sa");
7777
try (Handle handle = jdbi.open()) {
7878
handle.createUpdate(HaGatewayTestUtils.getResourceFileContent("gateway-ha-persistence-mysql.sql"))

gateway-ha/src/test/java/io/trino/gateway/ha/TestingJdbcConnectionManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public static DataStoreConfiguration dataStoreConfig()
2929
{
3030
File tempH2DbDir = Path.of(System.getProperty("java.io.tmpdir"), "h2db-" + System.currentTimeMillis()).toFile();
3131
tempH2DbDir.deleteOnExit();
32-
String jdbcUrl = "jdbc:h2:" + tempH2DbDir.getAbsolutePath();
32+
String jdbcUrl = "jdbc:h2:" + tempH2DbDir.getAbsolutePath() + ";NON_KEYWORDS=NAME,VALUE";
3333
HaGatewayTestUtils.seedRequiredData(tempH2DbDir.getAbsolutePath());
3434
return new DataStoreConfiguration(jdbcUrl, "sa", "sa", "org.h2.Driver", 4, false);
3535
}

0 commit comments

Comments
 (0)