提交 39d38c15 编写于 作者: G Ganlin Zhao

fix param check

上级 d6ac7de7
......@@ -498,7 +498,7 @@ static int32_t translateTimezone(SFunctionNode* pFunc, char* pErrBuf, int32_t le
static int32_t translatePercentile(SFunctionNode* pFunc, char* pErrBuf, int32_t len) {
int32_t numOfParams = LIST_LENGTH(pFunc->pParameterList);
if (numOfParams > 11) {
if (numOfParams < 2 || numOfParams > 11) {
return invaildFuncParaNumErrMsg(pErrBuf, len, pFunc->functionName);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册