提交 c265f252 编写于 作者: Z zyyang

change

上级 84ddd80e
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册