microsoft / go-sqlcmd

The new sqlcmd, CLI for SQL Server and Azure SQL (winget install sqlcmd / sqlcmd create mssql / sqlcmd open ads)
https://learn.microsoft.com/sql/tools/sqlcmd/go-sqlcmd-utility
MIT License
343 stars 60 forks source link

Do not read basic auth info if auth type is other #340

Closed apoorvdeshmukh closed 1 year ago

apoorvdeshmukh commented 1 year ago

This commit fixes #339 sqlcmd config add-user command by default assumes basic authentication type but in case a user is created with auth type other than "basic" then connection will be established to endpoint mentioned by current-context (which is existing behavior) and further auth info won't be read as auth type "other" is not supported yet.