fix: add desc command
This commit is contained in:
parent
c4f6db415b
commit
9f6aac4b73
|
@ -44,8 +44,12 @@ class TDTestCase(TBase):
|
||||||
# insert
|
# insert
|
||||||
json = "cmdline/json/taosCli.json"
|
json = "cmdline/json/taosCli.json"
|
||||||
db, stb, childCount, insertRows = self.insertBenchJson(json)
|
db, stb, childCount, insertRows = self.insertBenchJson(json)
|
||||||
|
# describe
|
||||||
sql = f"describe {db}.{stb};"
|
sql = f"describe {db}.{stb};"
|
||||||
# check result
|
tdSql.query(sql)
|
||||||
|
tdSql.checkRows(2 + 1000)
|
||||||
|
# desc
|
||||||
|
sql = f"desc {db}.{stb};"
|
||||||
tdSql.query(sql)
|
tdSql.query(sql)
|
||||||
tdSql.checkRows(2 + 1000)
|
tdSql.checkRows(2 + 1000)
|
||||||
|
|
||||||
|
|
|
@ -730,6 +730,10 @@ bool shellIsShowWhole(const char *sql) {
|
||||||
if (taosStrCaseStr(sql, "describe ") != NULL) {
|
if (taosStrCaseStr(sql, "describe ") != NULL) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
// desc
|
||||||
|
if (taosStrCaseStr(sql, "desc ") != NULL) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
// show
|
// show
|
||||||
if (taosStrCaseStr(sql, "show ") != NULL) {
|
if (taosStrCaseStr(sql, "show ") != NULL) {
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue