fix:bytes error

This commit is contained in:
wangmm0220 2023-08-25 22:21:33 +08:00
parent 9cd8df12c2
commit e59536181c
1 changed files with 1 additions and 3 deletions

View File

@ -1329,9 +1329,7 @@ static EDealRes translateValueImpl(STranslateContext* pCxt, SValueNode* pVal, SD
res = translateNormalValue(pCxt, pVal, targetDt, strict);
}
pVal->node.resType.type = targetDt.type;
if( targetDt.type == TSDB_DATA_TYPE_VARBINARY || !strict){
pVal->node.resType.bytes = targetDt.bytes;
}
pVal->node.resType.scale = pVal->unit;
pVal->translate = true;
if (!strict && TSDB_DATA_TYPE_UBIGINT == pVal->node.resType.type && pVal->datum.u <= INT64_MAX) {