diff --git a/src/common/src/tvariant.c b/src/common/src/tvariant.c index 086292b2e271a9f48ee6c2b9be918672d1b6c886..13d67c5552098e948e27afa5f5d1be3aa0d7e718 100644 --- a/src/common/src/tvariant.c +++ b/src/common/src/tvariant.c @@ -284,7 +284,7 @@ void tVariantAssign(tVariant *pDst, const tVariant *pSrc) { } - if (IS_NUMERIC_TYPE(pSrc->nType) || (pSrc->nType == TSDB_DATA_TYPE_BOOL)) { + if (IS_NUMERIC_TYPE(pSrc->nType) || IS_TIMESTAMP_TYPE(pSrc->nType) || (pSrc->nType == TSDB_DATA_TYPE_BOOL)) { pDst->i64 = pSrc->i64; } else if (pSrc->nType == TSDB_DATA_TYPE_POINTER_ARRAY) { // this is only for string array size_t num = taosArrayGetSize(pSrc->arr);