complie error

This commit is contained in:
Xiaoyu Wang 2022-04-15 20:31:21 +08:00
parent acb4a04459
commit f406c4e31d
1 changed files with 1 additions and 1 deletions

View File

@ -914,7 +914,7 @@ static int32_t createMultiResFuncsFromStar(STranslateContext* pCxt, SFunctionNod
} }
static bool isCountStar(SNode* pNode) { static bool isCountStar(SNode* pNode) {
if (QUERY_NODE_FUNCTION != nodeType(pNode)) { if (QUERY_NODE_FUNCTION != nodeType(pNode) || 1 != LIST_LENGTH(((SFunctionNode*)pNode)->pParameterList)) {
return false; return false;
} }
SNode* pPara = nodesListGetNode(((SFunctionNode*)pNode)->pParameterList, 0); SNode* pPara = nodesListGetNode(((SFunctionNode*)pNode)->pParameterList, 0);