Fix some plan cache bug

This commit is contained in:
obdev
2023-07-25 06:42:57 +00:00
committed by ob-robot
parent 79e6e3852c
commit 0065e91dda
5 changed files with 11 additions and 10 deletions

View File

@ -1063,7 +1063,7 @@ int ObSql::do_real_prepare(const ObString &sql,
&& !(ObStmt::is_dml_write_stmt(stmt_type) && // returning into from oci not supported
static_cast<ObDelUpdStmt*>(basic_stmt)->get_returning_into_exprs().count() > 0)
&& enable_udr
&& OB_FAIL(ObUDRUtils::match_udr_item(sql, session, allocator, item_guard))) {
&& OB_FAIL(ObUDRUtils::match_udr_item(sql, session, ectx, allocator, item_guard))) {
if (!ObSQLUtils::check_need_disconnect_parser_err(ret)) {
ectx.set_need_disconnect(false);
}
@ -1083,7 +1083,7 @@ int ObSql::do_real_prepare(const ObString &sql,
param_store,
session.get_local_collation_connection()))) {
LOG_WARN("parameterize syntax tree failed", K(ret));
if (OB_INVALID_ARGUMENT == ret) {
if (OB_INVALID_ARGUMENT == ret || OB_NOT_SUPPORTED == ret) {
pc_ctx.ps_need_parameterized_ = false;
ret = OB_SUCCESS;
}