make regexp functions be valid for generated column in mysql

This commit is contained in:
yinyj17
2023-09-11 07:14:27 +00:00
committed by ob-robot
parent 794549cf22
commit fe15aec896
10 changed files with 45 additions and 6 deletions

View File

@ -845,11 +845,6 @@ int ObRawExpr::is_non_pure_sys_func_expr(bool &is_non_pure) const
|| T_FUN_SYS_LAST_INSERT_ID == type_
|| T_FUN_SYS_ROW_COUNT == type_
|| T_FUN_SYS_FOUND_ROWS == type_
|| T_FUN_SYS_REGEXP_INSTR == type_
// TODO:@sean.yyj#273971, will sort out exprs not deterministic in mysql mode later,
// || T_FUN_SYS_REGEXP_LIKE == type_ // create table t1(c1 int, c2 int generated always as(regexp_like(1, 2))); success in mysql
|| T_FUN_SYS_REGEXP_REPLACE == type_
|| T_FUN_SYS_REGEXP_SUBSTR == type_
|| T_FUN_SYS_CURRENT_USER_PRIV == type_) {
is_non_pure = true;
}