Skip to content

Commit 55061ae

Browse files
committed
Skip the new test before 22.5
1 parent b83ba21 commit 55061ae

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

clickhouse-jdbc/src/test/java/com/clickhouse/jdbc/ClickHousePreparedStatementTest.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1582,8 +1582,12 @@ public void testInsertWithNullDateTime() throws SQLException {
15821582
@Test(groups = "integration")
15831583
public void testInsertWithSettings() throws SQLException {
15841584
Properties props = new Properties();
1585-
try (ClickHouseConnection conn = newConnection(props);
1586-
Statement s = conn.createStatement()) {
1585+
try (ClickHouseConnection conn = newConnection(props); Statement s = conn.createStatement()) {
1586+
if (!conn.getServerVersion().check("[22.5,)")) {
1587+
throw new SkipException(
1588+
"Skip due to breaking change introduced by https://github.com/ClickHouse/ClickHouse/pull/35883");
1589+
}
1590+
15871591
s.execute("drop table if exists test_insert_with_settings; "
15881592
+ "CREATE TABLE test_insert_with_settings(i Int32, s String) ENGINE=Memory");
15891593
try (PreparedStatement ps = conn

0 commit comments

Comments
 (0)