From 006acc55b6e00410ac1f65660c5f660832de6824 Mon Sep 17 00:00:00 2001 From: slzhou Date: Fri, 14 Oct 2022 17:41:59 +0800 Subject: [PATCH] fix: change the sql for check tables related to invalid table id --- src/kit/shell/src/shellCheck.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kit/shell/src/shellCheck.c b/src/kit/shell/src/shellCheck.c index dfc5d83b9f..593bb5caeb 100644 --- a/src/kit/shell/src/shellCheck.c +++ b/src/kit/shell/src/shellCheck.c @@ -131,7 +131,7 @@ static void *shellCheckThreadFp(void *arg) { char *tbname = tbNames[t]; if (tbname == NULL) break; - snprintf(sql, SHELL_SQL_LEN, "select count(*) from %s;", tbname); + snprintf(sql, SHELL_SQL_LEN, "select last_row(_c0) from `%s`;", tbname); TAOS_RES *pSql = taos_query(pThread->taos, sql); int32_t code = taos_errno(pSql); -- GitLab