Skip to content

Commit

Permalink
Fix test for tuning advisor < 19c
Browse files Browse the repository at this point in the history
  • Loading branch information
rammpeter committed Dec 16, 2024
1 parent 6178c35 commit 6517737
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/dba_sga_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1822,9 +1822,9 @@ def list_sql_patch_sql_text
def list_sql_tuning_advisor_tasks
@tasks = sql_select_iterator "SELECT t.*, o.SQL_Count, o.SQL_ID
FROM DBA_Advisor_Tasks t
LEFT OUTER JOIN (SELECT /*+ NO_MERGE */ Task_ID, COUNT(*) SQL_Count, MIN(Adv_SQL_ID) SQL_ID
LEFT OUTER JOIN (SELECT /*+ NO_MERGE */ Task_ID, COUNT(*) SQL_Count, MIN(#{ get_db_version >= '19' ? "Adv_SQL_ID" : "NULL"}) SQL_ID
FROM DBA_Advisor_Objects
WHERE Adv_SQL_ID IS NOT NULL
WHERE #{ get_db_version >= '19' ? "Adv_SQL_ID" : "NULL"} IS NOT NULL
GROUP BY Task_ID
) o ON o.Task_ID = t.Task_ID
WHERE t.Advisor_Name = 'SQL Tuning Advisor'
Expand Down

0 comments on commit 6517737

Please sign in to comment.