From 4693495a3d19e752022e02e2e32f6407e54ab4b0 Mon Sep 17 00:00:00 2001 From: slguan Date: Thu, 22 Aug 2019 18:24:39 +0800 Subject: [PATCH] remove extra blanks while tag values is null --- src/client/src/tscLocal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/src/tscLocal.c b/src/client/src/tscLocal.c index dcf9c468b1..16b3f31a8f 100644 --- a/src/client/src/tscLocal.c +++ b/src/client/src/tscLocal.c @@ -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: -- GitLab