提交 234d0b72 编写于 作者: wmmhello's avatar wmmhello

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

上级 f9cd543e
......@@ -468,14 +468,14 @@ void tSqlExprCompact(tSqlExpr** pExpr) {
}
bool tSqlExprIsLeaf(tSqlExpr* pExpr) {
return (pExpr->pRight == NULL && pExpr->pLeft == NULL) &&
return ((pExpr->pRight == NULL && pExpr->pLeft == NULL) &&
(pExpr->tokenId == 0 ||
(pExpr->tokenId == TK_ID) ||
(pExpr->tokenId >= TK_BOOL && pExpr->tokenId <= TK_NCHAR) ||
(pExpr->tokenId == TK_NULL) ||
(pExpr->tokenId == TK_SET) ||
(pExpr->tokenId == TK_SET))) ||
(pExpr->tokenId == TK_ARROW)||
(pExpr->tokenId == TK_QUESTION));
(pExpr->tokenId == TK_QUESTION);
}
bool tSqlExprIsParentOfLeaf(tSqlExpr* pExpr) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册