Skip to content

Commit 091d1d8

Browse files
authored
use microsoft go-mssqldb (#84)
1 parent b7c3c88 commit 091d1d8

File tree

8 files changed

+10
-12
lines changed

8 files changed

+10
-12
lines changed

cmd/sqlcmd/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"os"
99

1010
"github.com/alecthomas/kong"
11-
"github.com/denisenkom/go-mssqldb/azuread"
11+
"github.com/microsoft/go-mssqldb/azuread"
1212
"github.com/microsoft/go-sqlcmd/pkg/console"
1313
"github.com/microsoft/go-sqlcmd/pkg/sqlcmd"
1414
)

go.mod

+1-3
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@ go 1.16
44

55
require (
66
github.com/alecthomas/kong v0.5.0
7-
github.com/denisenkom/go-mssqldb v0.12.0
87
github.com/golang-sql/sqlexp v0.0.0-20170517235910-f1bb20e5a188
98
github.com/google/uuid v1.3.0
9+
github.com/microsoft/go-mssqldb v0.13.2
1010
github.com/peterh/liner v1.2.2
1111
github.com/stretchr/testify v1.7.1
1212
golang.org/x/text v0.3.6
1313
)
14-
15-
replace github.com/denisenkom/go-mssqldb => github.com/microsoft/go-mssqldb v0.12.1-0.20220421181353-0db958cd919d

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I=
2020
github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
2121
github.com/mattn/go-runewidth v0.0.3 h1:a+kO+98RDGEfo6asOGMmpodZq4FNtnGP54yps8BzLR4=
2222
github.com/mattn/go-runewidth v0.0.3/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU=
23-
github.com/microsoft/go-mssqldb v0.12.1-0.20220421181353-0db958cd919d h1:tsq7LhO5f4wOIPzLhDnwy2MAEQJTjc8KNu1LGmVwxJk=
24-
github.com/microsoft/go-mssqldb v0.12.1-0.20220421181353-0db958cd919d/go.mod h1:iiK0YP1ZeepvmBQk/QpLEhhTNJgfzrpArPY/aFvc9yU=
23+
github.com/microsoft/go-mssqldb v0.13.2 h1:PeUn6Fu7okbaPpcv5QOk+9h7PcetOuB5ff6tVwz5V24=
24+
github.com/microsoft/go-mssqldb v0.13.2/go.mod h1:JWsC4ToRBruAAoknz9wV9Iiqb/K85J4zabR6PnBNbro=
2525
github.com/modocache/gover v0.0.0-20171022184752-b58185e213c5/go.mod h1:caMODM3PzxT8aQXRPkAt8xlV/e7d7w8GM5g0fa5F0D8=
2626
github.com/peterh/liner v1.2.2 h1:aJ4AOodmL+JxOZZEL2u9iJf8omNRpqHc/EbrK+3mAXw=
2727
github.com/peterh/liner v1.2.2/go.mod h1:xFwJyiKIXJZUKItq5dGHZSTBRAuG/CpeNpWLyiNRNwI=

pkg/sqlcmd/azure_auth.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"net/url"
1010
"os"
1111

12-
"github.com/denisenkom/go-mssqldb/azuread"
12+
"github.com/microsoft/go-mssqldb/azuread"
1313
)
1414

1515
const (

pkg/sqlcmd/connect.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"fmt"
88
"net/url"
99

10-
"github.com/denisenkom/go-mssqldb/azuread"
10+
"github.com/microsoft/go-mssqldb/azuread"
1111
)
1212

1313
// ConnectSettings specifies the settings for connections

pkg/sqlcmd/format.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import (
1010
"strings"
1111
"time"
1212

13-
mssql "github.com/denisenkom/go-mssqldb"
1413
"github.com/google/uuid"
14+
mssql "github.com/microsoft/go-mssqldb"
1515
)
1616

1717
const (

pkg/sqlcmd/sqlcmd.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ import (
1818
"strings"
1919
"syscall"
2020

21-
mssql "github.com/denisenkom/go-mssqldb"
22-
"github.com/denisenkom/go-mssqldb/msdsn"
2321
"github.com/golang-sql/sqlexp"
22+
mssql "github.com/microsoft/go-mssqldb"
23+
"github.com/microsoft/go-mssqldb/msdsn"
2424
"golang.org/x/text/encoding/unicode"
2525
"golang.org/x/text/transform"
2626
)

pkg/sqlcmd/sqlcmd_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"strings"
1414
"testing"
1515

16-
"github.com/denisenkom/go-mssqldb/azuread"
16+
"github.com/microsoft/go-mssqldb/azuread"
1717

1818
"github.com/google/uuid"
1919
"github.com/stretchr/testify/assert"

0 commit comments

Comments
 (0)