提交 d06e34e2 编写于 作者: Z zyyang

change

上级 c574785e
...@@ -642,9 +642,13 @@ public class TSDBDatabaseMetaDataTest { ...@@ -642,9 +642,13 @@ public class TSDBDatabaseMetaDataTest {
ResultSet tables = metaData.getTables("log", "", null, null); ResultSet tables = metaData.getTables("log", "", null, null);
ResultSetMetaData metaData = tables.getMetaData(); ResultSetMetaData metaData = tables.getMetaData();
while (tables.next()) { while (tables.next()) {
System.out.print(metaData.getColumnLabel(3) + ":" + tables.getString(3) + "\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(4) + ":" + tables.getString(4) + "\t");
System.out.print(metaData.getColumnLabel(5) + ":" + tables.getString(5) + "\n"); // System.out.print(metaData.getColumnLabel(5) + ":" + tables.getString(5) + "\n");
for (int i = 1; i <= metaData.getColumnCount(); i++) {
System.out.print(metaData.getColumnLabel(i) + ": " + tables.getString(i) + "\t");
}
System.out.println();
} }
System.out.println(); System.out.println();
Assert.assertNotNull(tables); Assert.assertNotNull(tables);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册