From 84ddd80e9dde19fb341b5a26099472e73485dbfa Mon Sep 17 00:00:00 2001 From: zyyang Date: Sun, 17 Jan 2021 18:58:10 +0800 Subject: [PATCH] change --- .../com/taosdata/jdbc/TSDBDatabaseMetaDataTest.java | 11 +++++++---- 1 file changed, 7 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 c7d441e09f..0fd0e695c2 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 @@ -640,11 +640,14 @@ public class TSDBDatabaseMetaDataTest { @Test public void getTables() throws SQLException { ResultSet tables = metaData.getTables("", "", null, null); - ResultSetMetaData metaData = tables.getMetaData(); +// ResultSetMetaData metaData = tables.getMetaData(); while (tables.next()) { - System.out.print(metaData.getColumnLabel(3) + ":" + tables.getString(3) + "\t"); - System.out.print(metaData.getColumnLabel(4) + ":" + tables.getString(4) + "\t"); - System.out.print(metaData.getColumnLabel(5) + ":" + tables.getString(5) + "\t"); +// System.out.print(metaData.getColumnLabel(3) + ":" + tables.getString(3) + "\t"); +// System.out.print(metaData.getColumnLabel(4) + ":" + tables.getString(4) + "\t"); +// System.out.print(metaData.getColumnLabel(5) + ":" + tables.getString(5) + "\t"); + System.out.println("name:" + tables.getString(3)); + System.out.println("type:" + tables.getString(4)); + System.out.println("remark:" + tables.getString(5)); } System.out.println(); Assert.assertNull(tables);