File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
jdbc-v2/src/test/java/com/clickhouse/jdbc Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -717,10 +717,20 @@ void testMetabaseBug01() throws Exception {
717717 stmt .executeBatch ();
718718 }
719719
720+ StringBuilder sb = new StringBuilder ();
721+ try (Statement stmt01 = conn .createStatement ()) {
722+ try (ResultSet rs = stmt01 .executeQuery ("SELECT id, name FROM `users_tmp`" )) {
723+ while (rs .next ()) {
724+ sb .append (rs .getInt (1 )).append ("," ).append (rs .getString (2 )).append (";" );
725+ }
726+ }
727+ }
728+
729+
720730 try (Statement stmt01 = conn .createStatement ()) {
721731 try (ResultSet rs = stmt01 .executeQuery ("SELECT count(*) FROM `users_tmp`" )) {
722732 assertTrue (rs .next ());
723- assertEquals (rs .getInt (1 ), 3 );
733+ assertEquals (rs .getInt (1 ), "Users in users_tmp: " + sb );
724734 }
725735 }
726736
You can’t perform that action at this time.
0 commit comments