From 00a9dcd3979b1c9af6193c2a560053b8a1e5f889 Mon Sep 17 00:00:00 2001 From: fangpanpan <53251079+fangpanpan@users.noreply.github.com> Date: Wed, 25 Sep 2019 11:09:07 +0800 Subject: [PATCH] Update TSDBJNIConnector.c --- src/client/src/TSDBJNIConnector.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/client/src/TSDBJNIConnector.c b/src/client/src/TSDBJNIConnector.c index 9853a6dec1..70db011aa6 100644 --- a/src/client/src/TSDBJNIConnector.c +++ b/src/client/src/TSDBJNIConnector.c @@ -401,12 +401,8 @@ JNIEXPORT jint JNICALL Java_com_taosdata_jdbc_TSDBJNIConnector_fetchRowImp(JNIEn jniTrace("jobj:%p, taos:%p, resultset:%p, fields size is %d, fetch row to the end", jobj, tscon, res, num_fields); return JNI_FETCH_END; } else { - jclass cls; - cls = (*env)->FindClass(env,"com/taosdata/jdbc/TSDBError"); - if(cls == NULL){ - return JNI_TDENGINE_ERROR; - } - (*env)->ThrowNew(env,cls,"Interruppted query"); + jniTrace("jobj:%p, taos:%p, interruptted query", jobj, tscon); + return JNI_RESULT_SET_NULL; } } -- GitLab