change
This commit is contained in:
parent
bc94bec5c3
commit
5e4b457280
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue