fix TD-1115 in master branch

This commit is contained in:
zyyang 2020-08-13 11:12:50 +08:00
parent 03a29a618f
commit ecdf1ce5ec
1 changed files with 2 additions and 1 deletions

View File

@ -158,9 +158,10 @@ public class TSDBStatement implements Statement {
throw new SQLException(TSDBConstants.FixErrMsg(TSDBConstants.JNI_CONNECTION_NULL));
} else if (resultSetPointer == TSDBConstants.JNI_NULL_POINTER) {
// no result set is retrieved
this.connecter.freeResultSet(pSql);
res = false;
}
this.connecter.freeResultSet(pSql);
return res;
}