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:
Ganlin Zhao 2022-05-09 15:49:46 +08:00 committed by GitHub
commit 22f36e301c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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); varDataSetLen(output, len);
} }
//for constant conversion, need to set proper length of pOutput description //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; pOutput->columnData->info.bytes = len;
} }
break; break;