Merge pull request #17850 from taosdata/szhou/fixbugs

fix: taos_fetch_row returns null and log the error when the argument is invalid
This commit is contained in:
Shengliang Guan 2022-11-03 09:30:31 +08:00 committed by GitHub
commit 54717721c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;
}