Update TSDBJNIConnector.c

This commit is contained in:
fangpanpan 2019-09-25 11:09:07 +08:00 committed by GitHub
parent a151f2d440
commit 00a9dcd397
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 6 deletions

View File

@ -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;
}
}