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 2b87b72fef0f2b621536c5a11aba69975aa86434..905f78825f0b1d4ee095e70105c052a21799ac05 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 4956e91496925656fbea007e76c9e218b42f4cb6..75d365db783807591e55b36039ba3f14c0f9da0b 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);