Skip to content

Commit

Permalink
Change const
Browse files Browse the repository at this point in the history
  • Loading branch information
apoorvdeshmukh committed Aug 31, 2023
1 parent 18ea4dc commit e91b8c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions msdsn/conn_str.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type (
)

const (
DsnTypeUrl = 1
DsnTypeURL = 1
DsnTypeOdbc = 2
DsnTypeAdo = 3
)
Expand Down Expand Up @@ -214,7 +214,7 @@ var skipSetup = errors.New("skip setting up TLS")

func getDsnType(dsn string) int {
if strings.HasPrefix(dsn, "sqlserver://") {
return DsnTypeUrl
return DsnTypeURL
}
if strings.HasPrefix(dsn, "odbc:") {
return DsnTypeOdbc
Expand All @@ -233,7 +233,7 @@ func getDsnParams(dsn string) (map[string]string, error) {
if err != nil {
return params, err
}
case DsnTypeUrl:
case DsnTypeURL:
params, err = splitConnectionStringURL(dsn)
if err != nil {
return params, err
Expand Down

0 comments on commit e91b8c1

Please sign in to comment.