From f913058258c804f3dd93b9d8f4b2982841d55ae9 Mon Sep 17 00:00:00 2001
From: sheyanjie-qq <249478495@qq.com>
Date: Thu, 16 Jan 2025 19:05:59 +0800
Subject: [PATCH] fix memory leak caused by: query and do not get result bug
---
deploy-pom.xml | 2 +-
pom.xml | 2 +-
src/main/java/com/taosdata/jdbc/ws/AbstractWSResultSet.java | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/deploy-pom.xml b/deploy-pom.xml
index 5027ac24..0ff880a8 100755
--- a/deploy-pom.xml
+++ b/deploy-pom.xml
@@ -5,7 +5,7 @@
com.taosdata.jdbc
taos-jdbcdriver
- 3.5.1
+ 3.5.2
jar
JDBCDriver
diff --git a/pom.xml b/pom.xml
index a3a09bea..ab14b066 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.taosdata.jdbc
taos-jdbcdriver
- 3.5.1
+ 3.5.2
jar
JDBCDriver
diff --git a/src/main/java/com/taosdata/jdbc/ws/AbstractWSResultSet.java b/src/main/java/com/taosdata/jdbc/ws/AbstractWSResultSet.java
index b54ff330..50103b64 100644
--- a/src/main/java/com/taosdata/jdbc/ws/AbstractWSResultSet.java
+++ b/src/main/java/com/taosdata/jdbc/ws/AbstractWSResultSet.java
@@ -204,7 +204,7 @@ public void close() throws SQLException {
}
}
- if (result != null && !result.isEmpty() && !isCompleted) {
+ if (!isCompleted) {
FetchReq closeReq = new FetchReq();
closeReq.setReqId(queryId);
closeReq.setId(queryId);