提交 59b53377 编写于 作者: wmmhello's avatar wmmhello

<fix>[TD-11459] fix bugs result is empty if stddev with group by nchar

上级 77f13ae9
...@@ -2295,11 +2295,9 @@ void tscFirstRoundRetrieveCallback(void* param, TAOS_RES* tres, int numOfRows) { ...@@ -2295,11 +2295,9 @@ void tscFirstRoundRetrieveCallback(void* param, TAOS_RES* tres, int numOfRows) {
} else { } else {
if(pExpr->base.resType == TSDB_DATA_TYPE_NCHAR){ if(pExpr->base.resType == TSDB_DATA_TYPE_NCHAR){
int32_t output = 0; int32_t output = 0;
bool ret = taosMbsToUcs4(row[i], length[i], varDataVal(p + offset), pExpr->base.resBytes, &output); bool ret = taosMbsToUcs4(row[i], length[i], p + offset, pExpr->base.resBytes, &output);
if (!ret) { if (!ret) {
tscError("stddev convert tag error:%d", ret); tscError("stddev convert tag error:%d", ret);
}else{
varDataSetLen(p + offset, output);
} }
}else{ }else{
memcpy(p + offset, row[i], pExpr->base.resBytes); memcpy(p + offset, row[i], pExpr->base.resBytes);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册