From 53a562dcaedefc1631f8f65786b4ac479022eaaa Mon Sep 17 00:00:00 2001 From: obdev Date: Sun, 12 Jun 2022 12:32:50 +0800 Subject: [PATCH] fix leading hint bug --- src/sql/resolver/dml/ob_dml_stmt.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sql/resolver/dml/ob_dml_stmt.cpp b/src/sql/resolver/dml/ob_dml_stmt.cpp index 74f873f294..566af47f98 100644 --- a/src/sql/resolver/dml/ob_dml_stmt.cpp +++ b/src/sql/resolver/dml/ob_dml_stmt.cpp @@ -2321,6 +2321,7 @@ int ObDMLStmt::check_and_convert_leading_hint(const ObSQLSessionInfo& session_in ObIArray& leading_ids = hint.join_order_ids_; const ObIArray& tables = hint.join_order_; uint64_t table_id = OB_INVALID_ID; + leading_ids.reuse(); for (int64_t idx = 0; OB_SUCC(ret) && idx < tables.count(); ++idx) { const ObTableInHint& table = tables.at(idx); if (OB_FAIL(get_table_id(session_info, table.qb_name_, table.db_name_, table.table_name_, table_id))) { -- GitLab