[FEAT MERGE]4_1_sql_feature

Co-authored-by: leslieyuchen <leslieyuchen@gmail.com>
Co-authored-by: Charles0429 <xiezhenjiang@gmail.com>
Co-authored-by: raywill <hustos@gmail.com>
This commit is contained in:
obdev
2023-01-28 16:01:26 +08:00
committed by ob-robot
parent 3080f2b66f
commit 2d19a9d8f5
846 changed files with 161957 additions and 116661 deletions

View File

@ -143,6 +143,7 @@ int ObResultSet::open()
int ret = OB_SUCCESS;
my_session_.set_process_query_time(ObTimeUtility::current_time());
LinkExecCtxGuard link_guard(my_session_, get_exec_context());
FLTSpanGuard(open);
if (lib::is_oracle_mode() &&
get_exec_context().get_nested_level() >= OB_MAX_RECURSIVE_SQL_LEVELS) {
ret = OB_ERR_RECURSIVE_SQL_LEVELS_EXCEEDED;
@ -194,7 +195,6 @@ int ObResultSet::execute()
int ObResultSet::open_result()
{
int ret = OB_SUCCESS;
FLTSpanGuard(open);
ObPhysicalPlan* physical_plan_ = static_cast<ObPhysicalPlan*>(cache_obj_guard_.get_cache_obj());
if (NULL != physical_plan_) {
if (OB_ISNULL(exec_result_)) {
@ -706,6 +706,9 @@ OB_INLINE int ObResultSet::do_close_plan(int errcode, ObExecContext &ctx)
} else if (OB_SUCCESS != sret) {
ret = sret;
}
if (OB_SUCC(ret)) {
physical_plan_->set_record_plan_info(false);
}
} else {
ret = OB_ERR_UNEXPECTED;
}