[CP] fix temporary table bug in hierarchical query

This commit is contained in:
wjhh2008 2024-02-02 22:12:02 +00:00 committed by ob-robot
parent 3c5ba781b9
commit 5f88cee6a8

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 {