提交 9a7ae066 编写于 作者: C Cary Xu

update

上级 2bd2e428
...@@ -136,7 +136,7 @@ static void *shellCheckThreadFp(void *arg) { ...@@ -136,7 +136,7 @@ static void *shellCheckThreadFp(void *arg) {
TAOS_RES *pSql = taos_query(pThread->taos, sql); TAOS_RES *pSql = taos_query(pThread->taos, sql);
int32_t code = taos_errno(pSql); int32_t code = taos_errno(pSql);
// -k: -1 means check all errors, while other non-zero values means check specific errors. // -k: -1 means check all errors, while other non-zero values means check specific errors.
if (((pThread->sqlCode == -1) && (code != 0)) || (code == pThread->sqlCode)) { if ((code == pThread->sqlCode) || ((pThread->sqlCode == -1) && (code != 0))) {
int32_t len = snprintf(sql, SHELL_SQL_LEN, "drop table %s.%s;\n", pThread->db, tbname); int32_t len = snprintf(sql, SHELL_SQL_LEN, "drop table %s.%s;\n", pThread->db, tbname);
fwrite(sql, 1, len, fp); fwrite(sql, 1, len, fp);
atomic_add_fetch_32(&errorNum, 1); atomic_add_fetch_32(&errorNum, 1);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册