From 13346ccb5ec162d8a10157944ec8cf607e0f98ae Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 4 Aug 2022 21:06:10 -0400 Subject: [PATCH 1/2] spelling: any Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- cmd/sqlcmd/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/sqlcmd/main.go b/cmd/sqlcmd/main.go index eac220d4..c795abd5 100644 --- a/cmd/sqlcmd/main.go +++ b/cmd/sqlcmd/main.go @@ -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."` From d9ac65bd430d70a2d9466d4d3ef7a74efa92f95c Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 4 Aug 2022 21:12:56 -0400 Subject: [PATCH 2/2] spelling: malformed Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/sqlcmd/batch_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/sqlcmd/batch_test.go b/pkg/sqlcmd/batch_test.go index 85a6796a..4c4ddd8f 100644 --- a/pkg/sqlcmd/batch_test.go +++ b/pkg/sqlcmd/batch_test.go @@ -154,7 +154,7 @@ func TestReadString(t *testing.T) { } } -func TestReadStringMalformVariable(t *testing.T) { +func TestReadStringMalformedVariable(t *testing.T) { tests := []string{ "'select $(x'", "' $((x'",