From 765537affb5a5fba0eb2e50e78424e1e6a9372a0 Mon Sep 17 00:00:00 2001 From: zyyang Date: Thu, 11 Mar 2021 16:01:17 +0800 Subject: [PATCH] change --- .../test/java/com/taosdata/jdbc/TSDBJNIConnectorTest.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 cc0f7c6f08..4956e91496 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); -- GitLab