提交 1fa15b85 编写于 作者: Z zyyang

change

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