From bdd75ba3d99170ebe9e2a0c52f7b3f87d9bd23e4 Mon Sep 17 00:00:00 2001 From: zyyang Date: Thu, 21 Jan 2021 19:43:17 +0800 Subject: [PATCH] change --- .../jdbc/src/test/java/com/taosdata/jdbc/ImportTest.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/connector/jdbc/src/test/java/com/taosdata/jdbc/ImportTest.java b/src/connector/jdbc/src/test/java/com/taosdata/jdbc/ImportTest.java index 730bd37019..db9ad44ec4 100644 --- a/src/connector/jdbc/src/test/java/com/taosdata/jdbc/ImportTest.java +++ b/src/connector/jdbc/src/test/java/com/taosdata/jdbc/ImportTest.java @@ -64,9 +64,6 @@ public class ImportTest { String sql = "select * from " + dbName + "." + tName; ResultSet rs = stmt.executeQuery(sql); while (rs.next()) { - for (int i = 1; i <= rs.getMetaData().getColumnCount(); i++) { - System.out.printf(i + ": " + rs.getString(i) + "\t"); - } count++; } rs.close(); @@ -83,7 +80,7 @@ public class ImportTest { StringBuilder sqlBuilder = new StringBuilder("import into ").append(dbName).append(".").append(tName).append(" values "); for (int i = 0; i < 50; i++) { int a = i / 5; - long t = ts + a; + long t = (ts++) + a; sqlBuilder.append("(").append(t).append(",").append((100 + i)).append(",").append(i).append(") "); } System.out.println(sqlBuilder.toString()); -- GitLab