diff --git a/src/sql/resolver/dml/ob_dml_stmt.cpp b/src/sql/resolver/dml/ob_dml_stmt.cpp index 74f873f294fc4b373fe10c7614c4977ff26a9ad5..566af47f98caa939df1fb8bf9412e32c86899fcf 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))) {