From 05038ded8c76c8c80b92f93797e9ccbfcca0463e Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Sat, 2 Apr 2022 11:48:55 +0800 Subject: [PATCH] [td-14393] fix bug. --- source/client/src/clientImpl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/client/src/clientImpl.c b/source/client/src/clientImpl.c index 4e68b5331f..80559c025f 100644 --- a/source/client/src/clientImpl.c +++ b/source/client/src/clientImpl.c @@ -753,6 +753,7 @@ int32_t setResultDataPtr(SReqResultInfo* pResultInfo, TAOS_FIELD* pFields, int32 pStart += colLength[i]; } + // convert UCS4-LE encoded character to native multi-bytes character in current data block. for (int32_t i = 0; i < numOfCols; ++i) { int32_t type = pResultInfo->fields[i].type; int32_t bytes = pResultInfo->fields[i].bytes; @@ -779,6 +780,7 @@ int32_t setResultDataPtr(SReqResultInfo* pResultInfo, TAOS_FIELD* pFields, int32 } pResultInfo->pCol[i].pData = pResultInfo->convertBuf[i]; + pResultInfo->row[i] = pResultInfo->pCol[i].pData; } }