Skip to content

Commit 1652400

Browse files
committed
fixed test for prepared statement to accept SUCCESS_NO_INFO result for Cloud
1 parent 2a92383 commit 1652400

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,7 @@ void testBatchInsertWithRowBinary(String sql, Class implClass) throws Exception
768768

769769
int[] result = stmt.executeBatch();
770770
for (int r : result) {
771-
Assert.assertEquals(r, 1);
771+
Assert.assertTrue(r == 1 || r == PreparedStatement.SUCCESS_NO_INFO);
772772
}
773773
}
774774

0 commit comments

Comments
 (0)