Fix failed mysqltests caused by fixing rollup shared exprs bug and fixing core at inner_same_as

This commit is contained in:
obdev
2022-12-12 15:41:28 +00:00
committed by ob-robot
parent 06d62f76a9
commit 1be6c41e7e
3 changed files with 27 additions and 6 deletions

View File

@ -3388,7 +3388,8 @@ bool ObSysFunRawExpr::inner_same_as(
if (get_expr_type() != expr.get_expr_type()) {
} else if (T_FUN_SYS_RAND == get_expr_type()
|| T_FUN_SYS_GUID == get_expr_type()) {
} else if (expr.is_sys_func_expr()) {
} else if (get_expr_class() == expr.get_expr_class()) {
//for EXPR_UDF and EXPR_SYS_FUNC
const ObSysFunRawExpr *s_expr = static_cast<const ObSysFunRawExpr *>(&expr);
if (ObCharset::case_insensitive_equal(func_name_, s_expr->get_func_name())
&& this->get_param_count() == s_expr->get_param_count()) {