[CP] [to #54116671] fix serval pl bugs
This commit is contained in:
		| @ -1571,7 +1571,8 @@ int ObSql::handle_pl_execute(const ObString &sql, | ||||
| #endif | ||||
|   if (OB_SUCC(ret) && session.get_in_transaction()) { | ||||
|     if (ObStmt::is_dml_write_stmt(result.get_stmt_type()) || | ||||
|         ObStmt::is_savepoint_stmt(result.get_stmt_type())) { | ||||
|         ObStmt::is_savepoint_stmt(result.get_stmt_type()) || | ||||
|         (ObStmt::is_select_stmt(result.get_stmt_type()) && OB_NOT_NULL(result.get_physical_plan()) && result.get_physical_plan()->has_for_update())) { | ||||
|       session.set_has_exec_inner_dml(true); | ||||
|     } | ||||
|   } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 obdev
					obdev