From 5e4b45728055f8e2e179810a07d120bd2c3d2eb6 Mon Sep 17 00:00:00 2001 From: zyyang Date: Thu, 5 Nov 2020 14:40:47 +0800 Subject: [PATCH] change --- .../src/main/java/com/taosdata/jdbc/TSDBConnection.java | 1 - .../jdbc/src/main/java/com/taosdata/jdbc/TSDBDriver.java | 7 ------- .../src/test/java/com/taosdata/jdbc/TSDBDriverTest.java | 7 ------- 3 files changed, 15 deletions(-) diff --git a/src/connector/jdbc/src/main/java/com/taosdata/jdbc/TSDBConnection.java b/src/connector/jdbc/src/main/java/com/taosdata/jdbc/TSDBConnection.java index 57230ee65b..294544ed47 100644 --- a/src/connector/jdbc/src/main/java/com/taosdata/jdbc/TSDBConnection.java +++ b/src/connector/jdbc/src/main/java/com/taosdata/jdbc/TSDBConnection.java @@ -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), diff --git a/src/connector/jdbc/src/main/java/com/taosdata/jdbc/TSDBDriver.java b/src/connector/jdbc/src/main/java/com/taosdata/jdbc/TSDBDriver.java index d5f8510320..63c42ca399 100755 --- a/src/connector/jdbc/src/main/java/com/taosdata/jdbc/TSDBDriver.java +++ b/src/connector/jdbc/src/main/java/com/taosdata/jdbc/TSDBDriver.java @@ -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), diff --git a/src/connector/jdbc/src/test/java/com/taosdata/jdbc/TSDBDriverTest.java b/src/connector/jdbc/src/test/java/com/taosdata/jdbc/TSDBDriverTest.java index d254b242af..e7425a1569 100644 --- a/src/connector/jdbc/src/test/java/com/taosdata/jdbc/TSDBDriverTest.java +++ b/src/connector/jdbc/src/test/java/com/taosdata/jdbc/TSDBDriverTest.java @@ -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"); -- GitLab