fix: add return value

This commit is contained in:
刘蓓 2023-05-26 11:14:30 +08:00 committed by huolibo
parent 79031c47a2
commit a70cceb440
1 changed files with 1 additions and 1 deletions

View File

@ -394,7 +394,7 @@ JNIEXPORT jlong JNICALL Java_com_taosdata_jdbc_tmq_TMQConnector_tmqGetOffset(JNI
TAOS_RES *res = (TAOS_RES *)jres;
if (res == NULL) {
jniDebug("jobj:%p, invalid res handle", jobj);
return NULL;
return -1;
}
return tmq_get_vgroup_offset(res);
}