Skip to content

Commit 79db670

Browse files
author
Paultagoras
committed
Update DataTypeTests.java
1 parent 14bde0d commit 79db670

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,8 +398,10 @@ public void testIpAddressTypes() throws SQLException, UnknownHostException {
398398
try (ResultSet rs = stmt.executeQuery("SELECT * FROM test_ips ORDER BY order")) {
399399
assertTrue(rs.next());
400400
assertEquals(rs.getObject("ipv4_ip"), ipv4AddressByIp);
401+
assertEquals(rs.getString("ipv4_ip"), ipv4AddressByIp.toString());
401402
assertEquals(rs.getObject("ipv4_name"), ipv4AddressByName);
402403
assertEquals(rs.getObject("ipv6"), ipv6Address);
404+
assertEquals(rs.getString("ipv6"), ipv6Address.toString());
403405
assertFalse(rs.next());
404406
}
405407
}

0 commit comments

Comments
 (0)