From 76d8bcf2be544c1c2b09f261a4eb7289d3981d6a Mon Sep 17 00:00:00 2001 From: zyyang Date: Thu, 11 Mar 2021 16:37:24 +0800 Subject: [PATCH] change --- .../jdbc/src/main/java/com/taosdata/jdbc/TSDBDriver.java | 2 +- .../src/test/java/com/taosdata/jdbc/TSDBJNIConnectorTest.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 2b87b72fef..905f78825f 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 @@ -113,7 +113,7 @@ public class TSDBDriver extends AbstractDriver { return null; } //load taos.cfg start - loadTaosConfig(info); +// loadTaosConfig(info); try { TSDBJNIConnector.init((String) props.get(PROPERTY_KEY_CONFIG_DIR), (String) props.get(PROPERTY_KEY_LOCALE), diff --git a/src/connector/jdbc/src/test/java/com/taosdata/jdbc/TSDBJNIConnectorTest.java b/src/connector/jdbc/src/test/java/com/taosdata/jdbc/TSDBJNIConnectorTest.java index 4956e91496..75d365db78 100644 --- a/src/connector/jdbc/src/test/java/com/taosdata/jdbc/TSDBJNIConnectorTest.java +++ b/src/connector/jdbc/src/test/java/com/taosdata/jdbc/TSDBJNIConnectorTest.java @@ -18,9 +18,9 @@ public class TSDBJNIConnectorTest { TSDBJNIConnector.init("/etc/taos/taos.cfg", "en_US.UTF-8", "", ""); // connect TSDBJNIConnector connector = new TSDBJNIConnector(); - connector.connect("127.0.0.1", 6030, "test", "root", "taosdata"); + connector.connect("", 0, "test", "root", "taosdata"); // executeQuery - long pSql = connector.executeQuery("show dnodes"); + long pSql = connector.executeQuery("show variable"); if (connector.isUpdateQuery(pSql)) { connector.freeResultSet(pSql); throw TSDBError.createSQLException(TSDBErrorNumbers.ERROR_INVALID_WITH_EXECUTEQUERY); -- GitLab