提交 decfb9b5 编写于 作者: S slguan

fix issue #542

上级 3562ab96
...@@ -183,7 +183,9 @@ public class TSDBJNIConnector { ...@@ -183,7 +183,9 @@ public class TSDBJNIConnector {
res = this.freeResultSetImp(this.taos, result); res = this.freeResultSetImp(this.taos, result);
isResultsetClosed = true; // reset resultSetPointer to 0 after freeResultSetImp() return isResultsetClosed = true; // reset resultSetPointer to 0 after freeResultSetImp() return
taosResultSetPointer = TSDBConstants.JNI_NULL_POINTER; taosResultSetPointer = TSDBConstants.JNI_NULL_POINTER;
} } else {
isResultsetClosed = true;
}
return res; return res;
} }
...@@ -197,6 +199,7 @@ public class TSDBJNIConnector { ...@@ -197,6 +199,7 @@ public class TSDBJNIConnector {
if (!isResultsetClosed) { if (!isResultsetClosed) {
resCode = this.freeResultSetImp(this.taos, this.taosResultSetPointer); resCode = this.freeResultSetImp(this.taos, this.taosResultSetPointer);
taosResultSetPointer = TSDBConstants.JNI_NULL_POINTER; taosResultSetPointer = TSDBConstants.JNI_NULL_POINTER;
isResultsetClosed = true;
} }
return resCode; return resCode;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册