Commit 7108a96
sp_QuickieStore: fix plan/object IDs leaking into query_id_list in @find_high_impact
INSERT...EXEC captures all result sets, not just the first. The batch
had three SELECTs (queries, plans, objects) so plan_ids and object_ids
were concatenated into #hi_id_staging_queries. Removed the extra two
SELECTs since they are already executed separately below.
Tested on SQL2022 against PerformanceMonitor and hammerdb_tpcc.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 6bfb95a commit 7108a96
1 file changed
Lines changed: 1 addition & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4756 | 4756 | | |
4757 | 4757 | | |
4758 | 4758 | | |
4759 | | - | |
4760 | | - | |
4761 | | - | |
4762 | | - | |
4763 | | - | |
4764 | | - | |
4765 | | - | |
4766 | | - | |
4767 | | - | |
4768 | | - | |
4769 | | - | |
4770 | | - | |
4771 | | - | |
4772 | | - | |
4773 | | - | |
4774 | | - | |
4775 | | - | |
4776 | | - | |
4777 | | - | |
4778 | 4759 | | |
4779 | 4760 | | |
4780 | 4761 | | |
| |||
4809 | 4790 | | |
4810 | 4791 | | |
4811 | 4792 | | |
4812 | | - | |
4813 | | - | |
4814 | | - | |
4815 | | - | |
| 4793 | + | |
4816 | 4794 | | |
4817 | 4795 | | |
4818 | 4796 | | |
| |||
0 commit comments