[CP] fix temporary table bug in hierarchical query

This commit is contained in:
wjhh2008 2024-02-10 06:19:49 +00:00 committed by ob-robot
parent af2d0042b6
commit f12942adec

View File

@ -3065,7 +3065,7 @@ int ObTransformPreProcess::transform_for_temporary_table(ObDMLStmt *&stmt,
TableItem *view_table = NULL;
ObSelectStmt *ref_query = NULL;
TableItem *child_table = NULL;
if (stmt->is_single_table_stmt()) {
if (stmt->is_single_table_stmt() && !stmt->is_hierarchical_query()) {
if (OB_FAIL(add_filter_for_temporary_table(*stmt, *table_item, table_schema->is_oracle_trx_tmp_table()))) {
LOG_WARN("add filter for temporary table failed", K(ret));
} else {