fix temporary table not cleaned bug

This commit is contained in:
wjhh2008
2023-11-20 18:44:44 +00:00
committed by ob-robot
parent bafb8222cf
commit e68289c158
2 changed files with 5 additions and 4 deletions

View File

@ -1211,7 +1211,8 @@ bool ObResultSet::need_end_trans_callback() const
} else if (is_returning_) {
need = false;
} else if (my_session_.get_has_temp_table_flag()
|| my_session_.has_tx_level_temp_table()) {
|| my_session_.has_tx_level_temp_table()
|| (OB_NOT_NULL(physical_plan_) && physical_plan_->is_contain_oracle_trx_level_temporary_table())) {
need = false;
} else if (stmt::T_END_TRANS == get_stmt_type()) {
need = true;