This commit is contained in:
zyyang 2020-11-05 14:40:47 +08:00
parent bc94bec5c3
commit 5e4b457280
3 changed files with 0 additions and 15 deletions

View File

@ -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),

View File

@ -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),

View File

@ -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");