diff --git a/src/connector/jdbc/src/test/java/com/taosdata/jdbc/TSDBJNIConnectorTest.java b/src/connector/jdbc/src/test/java/com/taosdata/jdbc/TSDBJNIConnectorTest.java index cc0f7c6f087fba8d4c80909ab0be083639f9dcfa..4956e91496925656fbea007e76c9e218b42f4cb6 100644 --- a/src/connector/jdbc/src/test/java/com/taosdata/jdbc/TSDBJNIConnectorTest.java +++ b/src/connector/jdbc/src/test/java/com/taosdata/jdbc/TSDBJNIConnectorTest.java @@ -44,9 +44,10 @@ public class TSDBJNIConnectorTest { } rowData = new TSDBResultSetRowData(columnSize); // iterate resultSet - while (next(connector, pSql)) { - System.out.println(rowData.getColSize()); - rowData.getData().stream().forEach(System.out::println); + for (int i = 0; next(connector, pSql); i++) { + System.out.println("col[" + i + "] size: " + rowData.getColSize()); + rowData.getData().stream().forEach(col -> System.out.print(col + "\t")); + System.out.println(); } // close resultSet code = connector.freeResultSet(pSql);