From fcd61a25ec6344f3fb022a86a20faa93411fc5c6 Mon Sep 17 00:00:00 2001 From: Xiaoyu Wang Date: Fri, 29 Apr 2022 11:26:55 +0800 Subject: [PATCH] enh: refactor unit test of parser and planner --- source/libs/parser/src/parTranslater.c | 1 - 1 file changed, 1 deletion(-) diff --git a/source/libs/parser/src/parTranslater.c b/source/libs/parser/src/parTranslater.c index 10867b81ae..5421821f7c 100644 --- a/source/libs/parser/src/parTranslater.c +++ b/source/libs/parser/src/parTranslater.c @@ -496,7 +496,6 @@ static EDealRes translateValue(STranslateContext* pCxt, SValueNode* pVal) { return generateDealNodeErrMsg(pCxt, TSDB_CODE_OUT_OF_MEMORY); } varDataSetLen(pVal->datum.p, pVal->node.resType.bytes); - pVal->node.resType.bytes += VARSTR_HEADER_SIZE; strncpy(varDataVal(pVal->datum.p), pVal->literal, pVal->node.resType.bytes); break; } -- GitLab