diff --git a/src/common/src/tvariant.c b/src/common/src/tvariant.c index 87981f22d37d21609b4ccf04e2f97461495d0ccc..fdfa933cdeb2be89c20a5e617c082ff28378701f 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);