Merge pull request #12261 from taosdata/feature/3.0_glzhao
fix(query): fix cast function regression brought by other changes
This commit is contained in:
commit
22f36e301c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue