This commit is contained in:
slguan 2019-09-23 15:57:32 +08:00
parent 3562ab9694
commit decfb9b50b
1 changed files with 4 additions and 1 deletions

View File

@ -183,7 +183,9 @@ public class TSDBJNIConnector {
res = this.freeResultSetImp(this.taos, result);
isResultsetClosed = true; // reset resultSetPointer to 0 after freeResultSetImp() return
taosResultSetPointer = TSDBConstants.JNI_NULL_POINTER;
}
} else {
isResultsetClosed = true;
}
return res;
}
@ -197,6 +199,7 @@ public class TSDBJNIConnector {
if (!isResultsetClosed) {
resCode = this.freeResultSetImp(this.taos, this.taosResultSetPointer);
taosResultSetPointer = TSDBConstants.JNI_NULL_POINTER;
isResultsetClosed = true;
}
return resCode;
}