Skip to content

test(schema): pin Integrated Security=SSPI as true - #310

Draft
dhensby wants to merge 1 commit into
tediousjs:masterfrom
dhensby:test/pin-integrated-security-sspi
Draft

dhensby wants to merge 1 commit into
tediousjs:masterfrom
dhensby:test/pin-integrated-security-sspi

Conversation

@dhensby

@dhensby dhensby commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator

This PR adds fixtures that pin Integrated Security=SSPI as true in toSchema(MSSQL_SCHEMA). SqlClient reads SSPI as true. This library gives true today only because any word that it does not know coerces to true.

Changes

  • Two new fixtures in sql-strings.json: Integrated Security=SSPI, and the Trusted_Connection alias with sspi in lower case.

No result changes. The fixtures protect SSPI when boolean coercion becomes strict, which #279 proposes for the next major release.

Testing

  • The fixtures pass on this branch. Both fail if sspi coerces to false.
  • npm run lint passes. npm test runs 55 tests on Node 20, 22, 24 and 26, and all of them pass.

The commit type is test, so this does not cut a release.

Part of #279.

🤖 Generated with Claude Code

SqlClient reads Integrated Security=SSPI as true. toSchema() gives true
today only because any word that it does not know coerces to true. Add
fixtures for the key and for the Trusted_Connection alias, so that a
change to boolean coercion that breaks SSPI fails the tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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