From eb2c2b35bb60ba9e6bec4a3fdd77bd17eb2a92e8 Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Mon, 11 Jan 2021 15:09:21 +0800 Subject: [PATCH] [TD-225]fix bugs found in regression test. --- src/common/src/tvariant.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/src/tvariant.c b/src/common/src/tvariant.c index 87981f22d3..fdfa933cde 100644 --- a/src/common/src/tvariant.c +++ b/src/common/src/tvariant.c @@ -192,7 +192,7 @@ void tVariantAssign(tVariant *pDst, const tVariant *pSrc) { } - if (IS_NUMERIC_TYPE(pSrc->nType)) { + if (IS_NUMERIC_TYPE(pSrc->nType) || (pSrc->nType == TSDB_DATA_TYPE_BOOL)) { pDst->i64 = pSrc->i64; } else if (pSrc->nType == TSDB_DATA_TYPE_ARRAY) { // this is only for string array size_t num = taosArrayGetSize(pSrc->arr); -- GitLab