diff --git a/src/query/src/qSqlParser.c b/src/query/src/qSqlParser.c index f927287015bf56f09c99d992b18fd2d226cb15f5..6140abdaca64d5014e9ec5ebe11ff32979a320df 100644 --- a/src/query/src/qSqlParser.c +++ b/src/query/src/qSqlParser.c @@ -505,7 +505,7 @@ tSqlExpr *tSqlExprClone(tSqlExpr *pSrc) { tSqlExpr *pExpr = calloc(1, sizeof(tSqlExpr)); memcpy(pExpr, pSrc, sizeof(*pSrc)); - + if (pSrc->pLeft) { pExpr->pLeft = tSqlExprClone(pSrc->pLeft); } @@ -518,7 +518,7 @@ tSqlExpr *tSqlExprClone(tSqlExpr *pSrc) { tVariantAssign(&pExpr->value, &pSrc->value); //we don't clone paramList now because clone is only used for between/and - assert(pSrc->Expr.paramList == NULL); + pSrc->Expr.paramList = NULL; return pExpr; }