Skip to content

fix: support parameters in explain plan - #580

Merged
debba merged 3 commits into
TabularisDB:mainfrom
DhruvShah-Dev:fix-explain-plan-params
Aug 4, 2026
Merged

fix: support parameters in explain plan#580
debba merged 3 commits into
TabularisDB:mainfrom
DhruvShah-Dev:fix-explain-plan-params

Conversation

@DhruvShah-Dev

Copy link
Copy Markdown
Contributor

Summary

  • Reuse the existing query parameter modal when Visual Explain is opened for SQL with missing parameters.
  • Reuse saved tab parameter values when they are already complete.
  • Save submitted values back to the tab before opening the interpolated Explain query.

Validation

  • pnpm.cmd typecheck
  • pnpm.cmd lint

Fixes #565

DhruvShah-Dev and others added 3 commits July 31, 2026 13:18
editor.explain does not exist in any locale, so the params modal
submit button rendered the raw key. Reuse
editor.visualExplain.buttonShort, already translated in all locales.
@debba

debba commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

Thanks @DhruvShah-Dev, great work! Reusing the run flow's parameter handling for Explain Plan is exactly the right approach, and saving the submitted values back to the tab makes the two flows consistent.

I pushed one small fix on top: the submit button used t("editor.explain"), but that key does not exist in any locale, so the button rendered the raw key string. I switched it to the existing editor.visualExplain.buttonShort key ("Explain Plan"), which is already translated in all 11 locales.

Verified locally against MySQL: a parameterized query that previously failed EXPLAIN with ERROR 1064 now prompts for values and opens the plan correctly. Merging.

@debba
debba merged commit 4709272 into TabularisDB:main Aug 4, 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.

[Bug]: Explain does not work with Parameters in the query

2 participants