Merge pull request #3048 from taosdata/TD-1115_master_fix

fix TD-1115 in master branch
This commit is contained in:
Shengliang Guan 2020-08-13 15:32:49 +08:00 committed by GitHub
commit 54d94875c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;
}