[TD-225]fix bugs found in regression test.

This commit is contained in:
Haojun Liao 2021-01-11 15:09:21 +08:00
parent 04fb064eeb
commit eb2c2b35bb
1 changed files with 1 additions and 1 deletions

View File

@ -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);