提交 a1f9c2ec 编写于 作者: Z zyyang

change

上级 6de0ca76
...@@ -15,10 +15,10 @@ public class TSDBJNIConnectorTest { ...@@ -15,10 +15,10 @@ public class TSDBJNIConnectorTest {
public void test() { public void test() {
try { try {
// init // init
TSDBJNIConnector.init("/etc/taos/taos.cfg", "en_US.UTF-8", "", ""); TSDBJNIConnector.init(null, null, null, null);
// connect // connect
TSDBJNIConnector connector = new TSDBJNIConnector(); TSDBJNIConnector connector = new TSDBJNIConnector();
connector.connect("", 0, "test", "root", "taosdata"); connector.connect("127.0.0.1", 6030, null, "root", "taosdata");
// executeQuery // executeQuery
long pSql = connector.executeQuery("show variable"); long pSql = connector.executeQuery("show variable");
if (connector.isUpdateQuery(pSql)) { if (connector.isUpdateQuery(pSql)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册