提交 76d8bcf2 编写于 作者: Z zyyang

change

上级 765537af
......@@ -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),
......
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册