提交 97fcf7a7 编写于 作者: wmmhello's avatar wmmhello

TD-6129<feature> add tag-> where logic

上级 8d559b53
......@@ -122,7 +122,7 @@ void tExprTreeDestroy(tExprNode *pNode, void (*fp)(void *)) {
tfree(pNode->pSchema);
}
free(pNode);
tfree(pNode);
}
static void doExprTreeDestroy(tExprNode **pExpr, void (*fp)(void *)) {
......@@ -139,12 +139,12 @@ static void doExprTreeDestroy(tExprNode **pExpr, void (*fp)(void *)) {
}
} else if ((*pExpr)->nodeType == TSQL_NODE_VALUE) {
tVariantDestroy((*pExpr)->pVal);
free((*pExpr)->pVal);
tfree((*pExpr)->pVal);
} else if ((*pExpr)->nodeType == TSQL_NODE_COL) {
free((*pExpr)->pSchema);
tfree((*pExpr)->pSchema);
}
free(*pExpr);
tfree(*pExpr);
*pExpr = NULL;
}
......
......@@ -862,8 +862,8 @@ int32_t filterAddFieldFromNode(SFilterInfo *info, tExprNode *node, SFilterFieldI
assert(node->_node.pRight->pVal->nLen < TSDB_COL_NAME_LEN);
memset(node->_node.pLeft->pSchema->name, 0, TSDB_COL_NAME_LEN);
strncpy(node->_node.pLeft->pSchema->name, node->_node.pRight->pVal->pz, node->_node.pRight->pVal->nLen);
v = node->pSchema;
node->pSchema = NULL;
v = node->_node.pLeft->pSchema;
node->_node.pLeft->pSchema = NULL;
}else{
CHK_RET(node->nodeType != TSQL_NODE_COL && node->nodeType != TSQL_NODE_VALUE, TSDB_CODE_QRY_APP_ERROR);
if (node->nodeType == TSQL_NODE_COL) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册