提交 5e4b4572 编写于 作者: Z zyyang

change

上级 bc94bec5
......@@ -52,7 +52,6 @@ public class TSDBConnection implements Connection {
public TSDBConnection(Properties info, TSDBDatabaseMetaData meta) throws SQLException {
this.dbMetaData = meta;
connect(info.getProperty(TSDBDriver.PROPERTY_KEY_HOST),
Integer.parseInt(info.getProperty(TSDBDriver.PROPERTY_KEY_PORT, "0")),
info.getProperty(TSDBDriver.PROPERTY_KEY_DBNAME), info.getProperty(TSDBDriver.PROPERTY_KEY_USER),
......
......@@ -168,13 +168,6 @@ public class TSDBDriver implements java.sql.Driver {
}
try {
Enumeration<?> propertyNames = props.propertyNames();
while (propertyNames.hasMoreElements()) {
Object name = propertyNames.nextElement();
System.out.println(name + " : " + props.get(name));
}
TSDBJNIConnector.init((String) props.get(PROPERTY_KEY_CONFIG_DIR),
(String) props.get(PROPERTY_KEY_LOCALE),
(String) props.get(PROPERTY_KEY_CHARSET),
......
......@@ -113,13 +113,6 @@ public class TSDBDriverTest {
conn = DriverManager.getConnection(jdbcUrl, connProps);
assertNotNull("failure - connection should not be null", conn);
}
printRs();
Properties clientInfo = conn.getClientInfo();
Enumeration<?> propertyNames = clientInfo.propertyNames();
while (propertyNames.hasMoreElements()) {
String name = (String) propertyNames.nextElement();
System.out.println(name + " : " + clientInfo.getProperty(name));
}
} catch (SQLException e) {
e.printStackTrace();
fail("failure - should not throw Exception");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册