[TD-5614]<hotfix>: handle client and server time not synchronized (#7109)
This commit is contained in:
parent
8412c93140
commit
98472086d1
|
@ -80,7 +80,8 @@ public class TSDBJNIConnector {
|
||||||
|
|
||||||
this.taos = this.connectImp(host, port, dbName, user, password);
|
this.taos = this.connectImp(host, port, dbName, user, password);
|
||||||
if (this.taos == TSDBConstants.JNI_NULL_POINTER) {
|
if (this.taos == TSDBConstants.JNI_NULL_POINTER) {
|
||||||
throw TSDBError.createSQLException(TSDBErrorNumbers.ERROR_JNI_CONNECTION_NULL);
|
String errMsg = this.getErrMsg(0);
|
||||||
|
throw TSDBError.createSQLException(TSDBErrorNumbers.ERROR_JNI_CONNECTION_NULL, errMsg);
|
||||||
}
|
}
|
||||||
// invoke connectImp only here
|
// invoke connectImp only here
|
||||||
taosInfo.conn_open_increment();
|
taosInfo.conn_open_increment();
|
||||||
|
|
Loading…
Reference in New Issue