提交 631f58cb 编写于 作者: S shenglian zhou

for non-scalar function, follow existing behavior

上级 7f74af0d
...@@ -4373,9 +4373,11 @@ static int32_t validateSQLExprSQLFunc(SSqlCmd* pCmd, tSqlExpr* pExpr, ...@@ -4373,9 +4373,11 @@ static int32_t validateSQLExprSQLFunc(SSqlCmd* pCmd, tSqlExpr* pExpr,
(pParamElem->pNode->type == SQL_NODE_EXPR || pParamElem->pNode->type == SQL_NODE_SQLFUNCTION)) { (pParamElem->pNode->type == SQL_NODE_EXPR || pParamElem->pNode->type == SQL_NODE_SQLFUNCTION)) {
return TSDB_CODE_TSC_INVALID_OPERATION; return TSDB_CODE_TSC_INVALID_OPERATION;
} }
code = validateSQLExprItem(pCmd, pParamElem->pNode, pQueryInfo, pList, type, uid); if (TSDB_FUNC_IS_SCALAR(functionId)) {
if (code != TSDB_CODE_SUCCESS) { code = validateSQLExprItem(pCmd, pParamElem->pNode, pQueryInfo, pList, type, uid);
return code; if (code != TSDB_CODE_SUCCESS) {
return code;
}
} }
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册