This is an automated email from the ASF dual-hosted git repository. rong pushed a commit to branch select-into in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit 8f10d566b59766ae0744f6122b07252823b0a537 Author: Steve Yurong Su <[email protected]> AuthorDate: Wed Jul 21 10:58:50 2021 +0800 add tests --- .../org/apache/iotdb/db/integration/IoTDBSelectIntoIT.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/server/src/test/java/org/apache/iotdb/db/integration/IoTDBSelectIntoIT.java b/server/src/test/java/org/apache/iotdb/db/integration/IoTDBSelectIntoIT.java index c1c30c5..3d3c26f 100644 --- a/server/src/test/java/org/apache/iotdb/db/integration/IoTDBSelectIntoIT.java +++ b/server/src/test/java/org/apache/iotdb/db/integration/IoTDBSelectIntoIT.java @@ -39,6 +39,7 @@ import java.sql.SQLException; import java.sql.Statement; import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; import static org.junit.Assert.fail; public class IoTDBSelectIntoIT { @@ -133,10 +134,16 @@ public class IoTDBSelectIntoIT { int columnCount = resultSet.getMetaData().getColumnCount(); assertEquals(1 + 6, columnCount); - for (int i = 0; i < INSERTION_SQLS.length - 1; ++i) { + for (int i = 0; i < INSERTION_SQLS.length; ++i) { resultSet.next(); - System.out.println(resultSet.toString()); + StringBuilder stringBuilder = new StringBuilder(); + for (int j = 0; j < 6 + 1; ++j) { + stringBuilder.append(resultSet.getString(j + 1)).append(','); + } + System.out.println(stringBuilder.toString()); } + + assertFalse(resultSet.next()); } catch (SQLException throwable) { fail(throwable.getMessage()); }
