From 27e2cceaf52dbedfd41a8afcb59d2a8e57fbbc77 Mon Sep 17 00:00:00 2001 From: yihaoDeng Date: Wed, 20 Jan 2021 03:11:46 +0000 Subject: [PATCH] fix compile error on windows --- src/query/src/qExecutor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/query/src/qExecutor.c b/src/query/src/qExecutor.c index ef6c114acc..960127b15d 100644 --- a/src/query/src/qExecutor.c +++ b/src/query/src/qExecutor.c @@ -5943,7 +5943,7 @@ static void buildTableBlockDistResult(SQInfo *pQInfo) { type = blockDistSchema.type; } assert(type == TSDB_DATA_TYPE_BINARY); - STR_TO_VARSTR(pQuery->sdata[j]->data, (char *)(pTableBlockDist->result)); + STR_WITH_SIZE_TO_VARSTR(pQuery->sdata[j]->data, pTableBlockDist->result, (VarDataLenT)strlen(pTableBlockDist->result)); } freeTableBlockDist(pTableBlockDist); -- GitLab