Skip to content

Commit b03f6d1

Browse files
committed
fixed Time test when timezone was specified
1 parent 028be17 commit b03f6d1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

jdbc-v2/src/test/java/com/clickhouse/jdbc/DataTypeTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ public void testTimeTypes() throws SQLException {
618618
Properties createProperties = new Properties();
619619
createProperties.put(ClientConfigProperties.serverSetting("allow_experimental_time_time64_type"), "1");
620620
runQuery("CREATE TABLE test_time64 (order Int8, "
621-
+ "time Time('UTC'), time64 Time64(9) "
621+
+ "time Time, time64 Time64(9) "
622622
+ ") ENGINE = MergeTree ORDER BY ()",
623623
createProperties);
624624

jdbc-v2/src/test/java/com/clickhouse/jdbc/JdbcIntegrationTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,17 @@ protected static String getDatabase() {
4949

5050
@Override
5151
protected boolean runQuery(String query) {
52-
return runQuery(query, new Properties());
52+
runQuery(query, new Properties());
53+
return true;
5354
}
5455

55-
protected boolean runQuery(String query, Properties connProperties) {
56+
protected void runQuery(String query, Properties connProperties) {
5657
try (Connection connection = getJdbcConnection(connProperties)) {
5758
try (Statement stmt = connection.createStatement()) {
58-
return stmt.execute(query);
59+
stmt.execute(query);
5960
}
6061
} catch (SQLException e) {
61-
LOGGER.error("Failed to run query: {}", query, e);
62-
return false;
62+
throw new RuntimeException(e);
6363
}
6464
}
6565

0 commit comments

Comments
 (0)