From c265f25221eb9853d4fb237aae8f97b63db07a1a Mon Sep 17 00:00:00 2001 From: zyyang Date: Sun, 17 Jan 2021 19:01:42 +0800 Subject: [PATCH] change --- .../taosdata/jdbc/TSDBDatabaseMetaDataTest.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 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 0fd0e695c2..33bc84d935 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 @@ -639,15 +639,15 @@ public class TSDBDatabaseMetaDataTest { @Test public void getTables() throws SQLException { - ResultSet tables = metaData.getTables("", "", null, null); -// ResultSetMetaData metaData = tables.getMetaData(); + ResultSet tables = metaData.getTables("log", "", null, null); + 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.println("name:" + tables.getString(3)); - System.out.println("type:" + tables.getString(4)); - System.out.println("remark:" + tables.getString(5)); + 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); -- GitLab