提交 f72c875a 编写于 作者: S shenglian zhou

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

上级 7d291174
...@@ -286,7 +286,8 @@ TAOS_ROW taos_fetch_row(TAOS_RES *res) { ...@@ -286,7 +286,8 @@ TAOS_ROW taos_fetch_row(TAOS_RES *res) {
return NULL; return NULL;
} else { } else {
// assert to avoid un-initialization error // assert to avoid un-initialization error
ASSERT(0); tscError("invalid result passed to taos_fetch_row");
return NULL;
} }
return NULL; return NULL;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册