fix: taos_fetch_row returns null and log the error when the argument is invalid

This commit is contained in:
shenglian zhou 2022-11-03 07:55:47 +08:00
parent 7d291174aa
commit f72c875a02
1 changed files with 2 additions and 1 deletions

View File

@ -286,7 +286,8 @@ TAOS_ROW taos_fetch_row(TAOS_RES *res) {
return NULL;
} else {
// assert to avoid un-initialization error
ASSERT(0);
tscError("invalid result passed to taos_fetch_row");
return NULL;
}
return NULL;
}