to issue<49845698>:fix pdml with udf report 6220

This commit is contained in:
hanr881
2023-05-23 05:17:26 +00:00
committed by ob-robot
parent 54fbf31d94
commit 59591c9ea2
10 changed files with 50 additions and 28 deletions

View File

@ -4649,7 +4649,9 @@ int ObPLResolver::resolve_static_sql(const ObStmtNodeTree *parse_tree, ObPLSql &
if (!func.is_modifies_sql_data()) {
func.set_reads_sql_data();
}
} else if (ObStmt::is_dml_write_stmt(prepare_result.type_)) {
} else if (ObStmt::is_dml_write_stmt(prepare_result.type_) ||
ObStmt::is_savepoint_stmt(prepare_result.type_) ||
ObStmt::is_tcl_stmt(prepare_result.type_)) {
func.set_modifies_sql_data();
} else if (!func.is_reads_sql_data() && !func.is_modifies_sql_data()) {
func.set_contains_sql();