提交 0b0cf07f 编写于 作者: S shenglian zhou 提交者: shenglian zhou

[TS-2016](query,insert,other,connector,tools):fix app error of select from...

[TS-2016](query,insert,other,connector,tools):fix app error of select from (select * from empty_stable) by set subquery command to retrieve empty results
上级 232d27ee
......@@ -4223,7 +4223,11 @@ void executeQuery(SSqlObj* pSql, SQueryInfo* pQueryInfo) {
pSql->pSubs[i] = pNew;
SSqlCmd* pCmd = &pNew->cmd;
pCmd->command = TSDB_SQL_SELECT;
if (pSub->command == TSDB_SQL_RETRIEVE_EMPTY_RESULT) {
pCmd->command = TSDB_SQL_RETRIEVE_EMPTY_RESULT;
} else {
pCmd->command = TSDB_SQL_SELECT;
}
if ((code = tscAddQueryInfo(pCmd)) != TSDB_CODE_SUCCESS) {
goto _error;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册