Skip to content

Fix RetrievedFromCache always showing False#89

Merged
erikdarlingdata merged 1 commit intodevfrom
fix/issue-88-retrieved-from-cache
Mar 12, 2026
Merged

Fix RetrievedFromCache always showing False#89
erikdarlingdata merged 1 commit intodevfrom
fix/issue-88-retrieved-from-cache

Conversation

@erikdarlingdata
Copy link
Owner

Summary

  • Fixes [BUG] Retrieved from Cache #88
  • RetrievedFromCache is an attribute on the <StmtSimple> XML element, but the parser was reading it from the child <QueryPlan> element where it never exists — so it always defaulted to false
  • One-line fix: changed queryPlanEl to stmtEl in ShowPlanParser.cs:412

Test plan

  • All 48 existing tests pass
  • Verified across 19 test .sqlplan files that RetrievedFromCache always appears on StmtSimple, never on QueryPlan
  • Manual: open a Query Store plan and confirm "Retrieved From Cache" shows True when expected

🤖 Generated with Claude Code

RetrievedFromCache is an attribute on the StmtSimple XML element,
but the parser was reading it from the child QueryPlan element
where it never exists. Changed to read from stmtEl instead of
queryPlanEl.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@erikdarlingdata erikdarlingdata merged commit bc174ff into dev Mar 12, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant