Skip to content

Add regression tests for connection-string port handling (#496).#672

Merged
axellpadilla merged 1 commit into
dbt-msft:masterfrom
Benjamin-Knight:test/#496-connection-string-port-regression
May 20, 2026
Merged

Add regression tests for connection-string port handling (#496).#672
axellpadilla merged 1 commit into
dbt-msft:masterfrom
Benjamin-Knight:test/#496-connection-string-port-regression

Conversation

@Benjamin-Knight
Copy link
Copy Markdown
Collaborator

@Benjamin-Knight Benjamin-Knight commented May 20, 2026

This appears to have been an error in the upstream Fabric adapter, added these in as a regression test.
Closes #496

Three unit tests mock pyodbc.connect and inspect the connection string
built by SQLServerConnectionManager.open: port appended for
windows_login, port appended for sql authentication, and port omitted
when the host is a named instance (`host\instance`). Currently passes
on master; serves as a tripwire if the port-handling logic regresses.

No production change.
@axellpadilla axellpadilla merged commit 5090436 into dbt-msft:master May 20, 2026
5 checks passed
@Benjamin-Knight Benjamin-Knight deleted the test/#496-connection-string-port-regression branch May 21, 2026 08:41
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.

Port is not being applied properly when using Windows Login with non-default port

2 participants