提交 efc0dd01 编写于 作者: M Minglei Jin

fix: ignore Ref is not there to save true error

上级 d15780fb
......@@ -211,7 +211,9 @@ TAOS *taos_connect_internal(const char *ip, const char *user, const char *pass,
} else {
printf("taos connect failed, reason: %s.\n\n", tstrerror(terrno));
}
int32_t lastError = terrno;
taos_free_result(pSql);
if (terrno != lastError) terrno = lastError;
taos_close(pObj);
return NULL;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册