remove extra blanks while tag values is null

This commit is contained in:
slguan 2019-08-22 18:24:39 +08:00
parent 29eb60aa11
commit 4693495a3d
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ static int32_t tscSetValueToResObj(SSqlObj *pSql, int32_t rowLen) {
char *target = pRes->data + tscFieldInfoGetOffset(pCmd, 3) * totalNumOfRows + pField->bytes * i;
if (isNull(pTagValue, pSchema[i].type)) {
sprintf(target, "%s ", TSDB_DATA_NULL_STR);
sprintf(target, "%s", TSDB_DATA_NULL_STR);
} else {
switch (pSchema[i].type) {
case TSDB_DATA_TYPE_BINARY: