fix(query): fix cast ncahr bug

This commit is contained in:
Ganlin Zhao 2022-05-09 15:13:43 +08:00
parent e93376de9a
commit b4c7118a51
1 changed files with 1 additions and 1 deletions

View File

@ -822,7 +822,7 @@ int32_t castFunction(SScalarParam *pInput, int32_t inputNum, SScalarParam *pOutp
varDataSetLen(output, len);
}
//for constant conversion, need to set proper length of pOutput description
if (len < outputLen - VARSTR_HEADER_SIZE) {
if (len < outputLen) {
pOutput->columnData->info.bytes = len;
}
break;