[td-225] fix bug found by regression test.

This commit is contained in:
Haojun Liao 2020-10-26 18:37:32 +08:00
parent 57f15cfcdf
commit 00ecc593bd
1 changed files with 2 additions and 0 deletions

View File

@ -1121,6 +1121,8 @@ int32_t tscSqlExprCopy(SArray* dst, const SArray* src, uint64_t uid, bool deepco
}
*p1 = *pExpr;
memset(p1->param, 0, sizeof(tVariant) * tListLen(p1->param));
for (int32_t j = 0; j < pExpr->numOfParams; ++j) {
tVariantAssign(&p1->param[j], &pExpr->param[j]);
}