Skip to content

fix(databend): name only BendSQL's own parameters in the paste notice - #1706

Merged
cevheri merged 1 commit into
mainfrom
fix/databend-paste-notice-names
Oct 12, 2026
Merged

cevheri merged 1 commit into
mainfrom
fix/databend-paste-notice-names

Conversation

@cevheri

@cevheri cevheri commented Oct 12, 2026

Copy link
Copy Markdown
Member

Pasting a Databend DSN showed a "Not applied" warning listing every query key the URL parser found. If a value held an unencoded "&", or the query had a bare token with no "name=", part of that value showed up as a parameter name in the banner. For example, ?password=SECRET&TAIL showed TAIL.

The notice now names a parameter only when it is written as name=value and the name is one BendSQL reads by name (role, tenant, login and the rest of from_dsn's list). Every other parameter is counted instead: "Not applied: role and 1 other parameter.", "Not applied: 2 parameters." Session settings such as enable_dphyp are now counted too, not named.

Tests pin both reported inputs in the parser and in the form hook, and check that no text from a value reaches the warning. docs/providers/databend.md section 4.1 now says which parameters are named and which are counted.

Checks: the full local gate set passed (format, lint, typecheck, knip, the drift guards, every test file at 100% line coverage, build, build:lib, attw).
A browser check runs before this leaves draft.
No separate review agents ran on this branch.

The "Not applied" warning of a Databend paste named every query key the URL parser found. An unencoded "&" inside a value, or a bare token with no "name=", became a key of its own, so `?password=SECRET&TAIL` drew TAIL in the dialog's banner.

The notice now names only the parameters BendSQL reads by name (role, tenant, login and the rest of from_dsn's list) when written as name=value, and counts every other one ("Not applied: role and 1 other parameter."), so nothing taken from a value reaches it. The provider doc says which are named and which are counted.
@codecov

codecov Bot commented Oct 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@cevheri
cevheri marked this pull request as ready for review October 12, 2026 14:21
@cevheri
cevheri merged commit 2d1e134 into main Oct 12, 2026
33 checks passed
@cevheri
cevheri deleted the fix/databend-paste-notice-names branch October 12, 2026 14:21
@sonarqubecloud

Copy link
Copy Markdown

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