fix: add desc command

This commit is contained in:
Alex Duan 2024-11-27 13:45:58 +08:00
parent c4f6db415b
commit 9f6aac4b73
2 changed files with 9 additions and 1 deletions

View File

@ -44,8 +44,12 @@ class TDTestCase(TBase):
# insert
json = "cmdline/json/taosCli.json"
db, stb, childCount, insertRows = self.insertBenchJson(json)
# describe
sql = f"describe {db}.{stb};"
# check result
tdSql.query(sql)
tdSql.checkRows(2 + 1000)
# desc
sql = f"desc {db}.{stb};"
tdSql.query(sql)
tdSql.checkRows(2 + 1000)

View File

@ -730,6 +730,10 @@ bool shellIsShowWhole(const char *sql) {
if (taosStrCaseStr(sql, "describe ") != NULL) {
return true;
}
// desc
if (taosStrCaseStr(sql, "desc ") != NULL) {
return true;
}
// show
if (taosStrCaseStr(sql, "show ") != NULL) {
return true;