From 15f78242582f46914f088a89a0967724ec548b21 Mon Sep 17 00:00:00 2001 From: Dan Hensby Date: Wed, 2 Dec 2026 11:34:40 +0000 Subject: [PATCH] test(schema): pin Integrated Security=SSPI as true 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 --- test/parser/fixture/sql-strings.json | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/test/parser/fixture/sql-strings.json b/test/parser/fixture/sql-strings.json index 8595fad..fd7fc42 100644 --- a/test/parser/fixture/sql-strings.json +++ b/test/parser/fixture/sql-strings.json @@ -37,6 +37,22 @@ "encrypt": true } }, + { + "name": "reads Integrated Security=SSPI as true", + "connection_string": "Server=h;Integrated Security=SSPI", + "expected": { + "data source": "h", + "integrated security": true + } + }, + { + "name": "reads the Trusted_Connection alias with sspi as true", + "connection_string": "Server=h;Trusted_Connection=sspi", + "expected": { + "data source": "h", + "integrated security": true + } + }, { "name": "uses the default for an empty boolean or number value", "connection_string": "Server=h;TrustServerCertificate=;Connect Timeout=;Database=d",