fix temporary table bug

This commit is contained in:
wjhh2008
2023-07-31 12:42:16 +00:00
committed by ob-robot
parent 55df7557de
commit 772ea65742
4 changed files with 24 additions and 19 deletions

View File

@ -749,7 +749,6 @@ int ObRawExpr::is_const_inherit_expr(bool &is_const_inherit,
|| (T_FUN_SYS_LAST_INSERT_ID == type_ && get_param_count() > 0)
|| T_FUN_SYS_TO_BLOB == type_
|| (T_FUN_SYS_SYSDATE == type_ && lib::is_mysql_mode())
|| T_FUN_GET_TEMP_TABLE_SESSID == type_
|| (param_need_replace ? is_not_calculable_expr() : cnt_not_calculable_expr())
|| (T_FUN_UDF == type_
&& !static_cast<const ObUDFRawExpr*>(this)->is_deterministic())) {
@ -793,6 +792,7 @@ int ObRawExpr::is_non_pure_sys_func_expr(bool &is_non_pure) const
|| T_FUN_SYS_CUR_DATE == type_
|| T_FUN_SYS_USERENV == type_
|| T_FUN_SYS_REGEXP_REPLACE == type_
|| T_FUN_GET_TEMP_TABLE_SESSID == type_
|| T_FUN_SYS_USER_CAN_ACCESS_OBJ == type_) {
is_non_pure = true;
} else if (T_FUN_SYS_TO_DATE == type_ || T_FUN_SYS_TO_TIMESTAMP == type_ ||