未验证 提交 8f1b0d0b 编写于 作者: H Haojun Liao 提交者: GitHub

Merge pull request #6894 from taosdata/fix/query

[td-5278]<enhance>: enable the show queries display the projection qu…
...@@ -2437,7 +2437,9 @@ void tscDoQuery(SSqlObj* pSql) { ...@@ -2437,7 +2437,9 @@ void tscDoQuery(SSqlObj* pSql) {
SQueryInfo *pQueryInfo = tscGetQueryInfoDetail(pCmd, pCmd->clauseIndex); SQueryInfo *pQueryInfo = tscGetQueryInfoDetail(pCmd, pCmd->clauseIndex);
uint16_t type = pQueryInfo->type; uint16_t type = pQueryInfo->type;
if ((pCmd->command == TSDB_SQL_SELECT) && (!TSDB_QUERY_HAS_TYPE(type, TSDB_QUERY_TYPE_SUBQUERY)) && (!TSDB_QUERY_HAS_TYPE(type, TSDB_QUERY_TYPE_STABLE_SUBQUERY))) { if ((pCmd->command == TSDB_SQL_SELECT) && (((!TSDB_QUERY_HAS_TYPE(type, TSDB_QUERY_TYPE_SUBQUERY)) &&
(!TSDB_QUERY_HAS_TYPE(type, TSDB_QUERY_TYPE_STABLE_SUBQUERY))) ||
(tscIsProjectionQuery(pQueryInfo)))) {
tscAddIntoSqlList(pSql); tscAddIntoSqlList(pSql);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册