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

change

上级 765537af
...@@ -113,7 +113,7 @@ public class TSDBDriver extends AbstractDriver { ...@@ -113,7 +113,7 @@ public class TSDBDriver extends AbstractDriver {
return null; return null;
} }
//load taos.cfg start //load taos.cfg start
loadTaosConfig(info); // loadTaosConfig(info);
try { try {
TSDBJNIConnector.init((String) props.get(PROPERTY_KEY_CONFIG_DIR), (String) props.get(PROPERTY_KEY_LOCALE), TSDBJNIConnector.init((String) props.get(PROPERTY_KEY_CONFIG_DIR), (String) props.get(PROPERTY_KEY_LOCALE),
......
...@@ -18,9 +18,9 @@ public class TSDBJNIConnectorTest { ...@@ -18,9 +18,9 @@ public class TSDBJNIConnectorTest {
TSDBJNIConnector.init("/etc/taos/taos.cfg", "en_US.UTF-8", "", ""); TSDBJNIConnector.init("/etc/taos/taos.cfg", "en_US.UTF-8", "", "");
// connect // connect
TSDBJNIConnector connector = new TSDBJNIConnector(); TSDBJNIConnector connector = new TSDBJNIConnector();
connector.connect("127.0.0.1", 6030, "test", "root", "taosdata"); connector.connect("", 0, "test", "root", "taosdata");
// executeQuery // executeQuery
long pSql = connector.executeQuery("show dnodes"); long pSql = connector.executeQuery("show variable");
if (connector.isUpdateQuery(pSql)) { if (connector.isUpdateQuery(pSql)) {
connector.freeResultSet(pSql); connector.freeResultSet(pSql);
throw TSDBError.createSQLException(TSDBErrorNumbers.ERROR_INVALID_WITH_EXECUTEQUERY); 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.
先完成此消息的编辑!
想要评论请 注册