This commit is contained in:
Haojun Liao 2020-06-03 14:29:45 +08:00
parent 5a712d028c
commit 1273abc299
1 changed files with 10 additions and 2 deletions

View File

@ -6055,9 +6055,17 @@ static void buildTagQueryResult(SQInfo* pQInfo) {
char* dst = pQuery->sdata[j]->data + i * pExprInfo[j].bytes;
if (type == TSDB_DATA_TYPE_BINARY || type == TSDB_DATA_TYPE_NCHAR) {
memcpy(dst, data, varDataTLen(data));
if (data == NULL) {
setVardataNull(dst, type);
} else {
memcpy(dst, data, varDataTLen(data));
}
} else {
memcpy(dst, data, bytes);
if (data == NULL) {
setNull(dst, type, bytes);
} else {
memcpy(dst, data, pExprInfo[j].bytes);
}
}
}
}