Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/sqlcmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type SQLCmdArguments struct {
// Whether to trust the server certificate on an encrypted connection
TrustServerCertificate bool `short:"C" help:"Implicitly trust the server certificate without validation."`
DatabaseName string `short:"d" help:"This option sets the sqlcmd scripting variable SQLCMDDBNAME. This parameter specifies the initial database. The default is your login's default-database property. If the database does not exist, an error message is generated and sqlcmd exits."`
UseTrustedConnection bool `short:"E" xor:"uid, auth" help:"Uses a trusted connection instead of using a user name and password to sign in to SQL Server, ignoring any any environment variables that define user name and password."`
UseTrustedConnection bool `short:"E" xor:"uid, auth" help:"Uses a trusted connection instead of using a user name and password to sign in to SQL Server, ignoring any environment variables that define user name and password."`
UserName string `short:"U" xor:"uid" help:"The login name or contained database user name. For contained database users, you must provide the database name option"`
// Files from which to read query text
InputFile []string `short:"i" xor:"input1, input2" type:"existingFile" help:"Identifies one or more files that contain batches of SQL statements. If one or more files do not exist, sqlcmd will exit. Mutually exclusive with -Q/-q."`
Expand Down
2 changes: 1 addition & 1 deletion pkg/sqlcmd/batch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func TestReadString(t *testing.T) {
}
}

func TestReadStringMalformVariable(t *testing.T) {
func TestReadStringMalformedVariable(t *testing.T) {
tests := []string{
"'select $(x'",
"' $((x'",
Expand Down