fix: add desc command
This commit is contained in:
parent
c4f6db415b
commit
9f6aac4b73
|
@ -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)
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue