enh(query): increase the validity check of function parameters

This commit is contained in:
Xiaoyu Wang 2022-04-14 16:19:29 +08:00
parent 7efb34fdfa
commit 64790e4de9
1 changed files with 1 additions and 1 deletions

View File

@ -227,7 +227,7 @@ static int32_t translateLength(SFunctionNode* pFunc, char* pErrBuf, int32_t len)
return invaildFuncParaTypeErrMsg(pErrBuf, len, pFunc->functionName);
}
pFunc->node.resType = (SDataType) { .bytes = tDataTypes[TSDB_DATA_TYPE_INT].bytes, .type = TSDB_DATA_TYPE_INT };
pFunc->node.resType = (SDataType) { .bytes = tDataTypes[TSDB_DATA_TYPE_SMALLINT].bytes, .type = TSDB_DATA_TYPE_SMALLINT };
return TSDB_CODE_SUCCESS;
}