提交 41b20268 编写于 作者: Z zyyang

change

上级 df853a96
...@@ -9,10 +9,9 @@ import java.util.Properties; ...@@ -9,10 +9,9 @@ import java.util.Properties;
public class InvalidResultSetPointerTest { public class InvalidResultSetPointerTest {
private static String host = "127.0.0.1"; private static String host = "127.0.0.1";
private static String driverType = "jni";
private static final String dbName = "test"; private static final String dbName = "test";
private static final String stbName = "weather"; private static final String stbName = "meters";
private static final String tbName = "subweather"; private static final String tbName = "t1";
private static Connection connection; private static Connection connection;
private static int numOfSTb = 300000; private static int numOfSTb = 300000;
private static int numOfTb = 3; private static int numOfTb = 3;
...@@ -54,7 +53,7 @@ public class InvalidResultSetPointerTest { ...@@ -54,7 +53,7 @@ public class InvalidResultSetPointerTest {
instance[i].start(); instance[i].start();
} }
for (int i = 0; i < numOfThreads; i ++) { for (int i = 0; i < numOfThreads; i++) {
try { try {
instance[i].join(); instance[i].join();
} catch (InterruptedException ie) { } catch (InterruptedException ie) {
...@@ -72,12 +71,7 @@ public class InvalidResultSetPointerTest { ...@@ -72,12 +71,7 @@ public class InvalidResultSetPointerTest {
public static void beforeClass() { public static void beforeClass() {
try { try {
String url = "jdbc:TAOS://" + host + ":6030/?user=root&password=taosdata"; String url = "jdbc:TAOS://" + host + ":6030/?user=root&password=taosdata";
if (driverType.equals("restful")) { Class.forName("com.taosdata.jdbc.TSDBDriver");
Class.forName("com.taosdata.jdbc.rs.RestfulDriver");
url = "jdbc:TAOS-RS://" + host + ":6041/?user=root&password=taosdata";
} else {
Class.forName("com.taosdata.jdbc.TSDBDriver");
}
Properties properties = new Properties(); Properties properties = new Properties();
properties.setProperty("charset", "UTF-8"); properties.setProperty("charset", "UTF-8");
properties.setProperty("locale", "en_US.UTF-8"); properties.setProperty("locale", "en_US.UTF-8");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册