Skip to content

fix: Fix EXPLAIN param count when placeholders repeat#6082

Open
rgeyer wants to merge 2 commits intomainfrom
rgeyer/fix/explainplan-stmt-placeholders
Open

fix: Fix EXPLAIN param count when placeholders repeat#6082
rgeyer wants to merge 2 commits intomainfrom
rgeyer/fix/explainplan-stmt-placeholders

Conversation

@rgeyer
Copy link
Copy Markdown
Contributor

@rgeyer rgeyer commented Apr 16, 2026

Brief description of Pull Request

The original implementation failed to account for queries which reuse the same parameter multiple times, in which case counting placeholders results in too many parameters being passed to the prepared statement.

Issue(s) fixed by this Pull Request

grafana/grafana-dbo11y-app#2690

PR Checklist

  • Tests updated

@rgeyer rgeyer requested a review from a team as a code owner April 16, 2026 22:59
@rgeyer rgeyer changed the title fix: fix EXPLAIN param count when placeholders repeat fix: Fix EXPLAIN param count when placeholders repeat Apr 16, 2026
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