From fb908bc8b087c10a32d4151ecd954b49a52144c9 Mon Sep 17 00:00:00 2001 From: zyyang Date: Tue, 19 Jan 2021 16:40:02 +0800 Subject: [PATCH] change --- .../java/com/taosdata/jdbc/TSDBDatabaseMetaDataTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/connector/jdbc/src/test/java/com/taosdata/jdbc/TSDBDatabaseMetaDataTest.java b/src/connector/jdbc/src/test/java/com/taosdata/jdbc/TSDBDatabaseMetaDataTest.java index a3fc479491..258e3cd799 100644 --- a/src/connector/jdbc/src/test/java/com/taosdata/jdbc/TSDBDatabaseMetaDataTest.java +++ b/src/connector/jdbc/src/test/java/com/taosdata/jdbc/TSDBDatabaseMetaDataTest.java @@ -677,15 +677,15 @@ public class TSDBDatabaseMetaDataTest { ResultSet columns = metaData.getColumns("log", "", "dn", ""); ResultSetMetaData meta = columns.getMetaData(); while (columns.next()) { - System.out.print(meta.getColumnLabel(0) + ": " + columns.getString(0) + "\t"); - System.out.print(meta.getColumnLabel(2) + ": " + columns.getString(0) + "\t"); + System.out.print(meta.getColumnLabel(1) + ": " + columns.getString(0) + "\t"); System.out.print(meta.getColumnLabel(3) + ": " + columns.getString(0) + "\t"); System.out.print(meta.getColumnLabel(4) + ": " + columns.getString(0) + "\t"); System.out.print(meta.getColumnLabel(5) + ": " + columns.getString(0) + "\t"); System.out.print(meta.getColumnLabel(6) + ": " + columns.getString(0) + "\t"); - System.out.print(meta.getColumnLabel(8) + ": " + columns.getString(0) + "\t"); + System.out.print(meta.getColumnLabel(7) + ": " + columns.getString(0) + "\t"); System.out.print(meta.getColumnLabel(9) + ": " + columns.getString(0) + "\t"); - System.out.print(meta.getColumnLabel(10) + ": " + columns.getString(0) + "\n"); + System.out.print(meta.getColumnLabel(10) + ": " + columns.getString(0) + "\t"); + System.out.print(meta.getColumnLabel(11) + ": " + columns.getString(0) + "\n"); } } -- GitLab