dbcli / mssql-cli

A command-line client for SQL Server with auto-completion and syntax highlighting
BSD 3-Clause "New" or "Revised" License
1.35k stars 192 forks source link

username with @ character error #548

Open m-v-k opened 2 years ago

m-v-k commented 2 years ago

When the username (-U) contains an @, it will assume a username on the left side and a server address on the right side of the @.

appending an extra @ followed by the same value of server (-S) fixes the issue, and it now uses the correct username and server address to sign in.

it seems to me this behavior should be fixed, since server address is a separate input argument. Or documenting this on the username argument description.