提交 bf36b4c5 编写于 作者: Z zyyang

change

上级 4956424f
......@@ -49,7 +49,10 @@ public class TSDBJNIConnector {
for (String key : props.stringPropertyNames()) {
configJSON.put(key, props.getProperty(key));
}
setConfig(configJSON.toJSONString());
int ret = setConfigImp(configJSON.toJSONString());
if (ret == -1) {
throw TSDBError.createSQLWarning("failed to set config, invalid json format: " + configJSON.toJSONString());
}
String configDir = props.getProperty(TSDBDriver.PROPERTY_KEY_CONFIG_DIR);
initImp(configDir);
......@@ -79,10 +82,6 @@ public class TSDBJNIConnector {
private static native String getTsCharset();
public static void setConfig(String config) {
setConfigImp(config);
}
private static native int setConfigImp(String config);
public boolean connect(String host, int port, String dbName, String user, String password) throws SQLException {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册