2828import java .time .OffsetDateTime ;
2929import java .time .ZoneId ;
3030import java .time .ZonedDateTime ;
31- import java .time .format .DateTimeFormatter ;
3231import java .util .GregorianCalendar ;
3332import java .util .HashMap ;
3433import java .util .Map ;
@@ -532,7 +531,7 @@ public void testIpAddressTypes() throws SQLException, UnknownHostException {
532531 InetAddress ipv4AsIpv6 = Inet4Address .getByName ("90.176.75.97" );
533532
534533 try (Connection conn = getConnection ()) {
535- try (PreparedStatement stmt = conn .prepareStatement ("INSERT INTO test_ips VALUES ( 1, ?, ?, ? )" )) {
534+ try (PreparedStatement stmt = conn .prepareStatement ("INSERT INTO test_ips VALUES ( 1, ?, ?, ?, ? )" )) {
536535 stmt .setObject (1 , ipv4AddressByIp );
537536 stmt .setObject (2 , ipv4AddressByName );
538537 stmt .setObject (3 , ipv6Address );
@@ -551,8 +550,7 @@ public void testIpAddressTypes() throws SQLException, UnknownHostException {
551550 assertEquals (rs .getObject ("ipv4_name" ), ipv4AddressByName );
552551 assertEquals (rs .getObject ("ipv6" ), ipv6Address );
553552 assertEquals (rs .getString ("ipv6" ), ipv6Address .toString ());
554- String value = rs .getObject ("ipv4_as_ipv6" ).toString ();
555- System .out .println ("ip: " + value );
553+ assertEquals (rs .getObject ("ipv4_as_ipv6" ), ipv4AsIpv6 );
556554 assertFalse (rs .next ());
557555 }
558556 }
0 commit comments