Commit 6959af3 1 parent a4daffd commit 6959af3 Copy full SHA for 6959af3
File tree 3 files changed +7
-4
lines changed
3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ import (
42
42
"github.com/apache/calcite-avatica-go/v5/hsqldb"
43
43
"github.com/apache/calcite-avatica-go/v5/message"
44
44
"github.com/apache/calcite-avatica-go/v5/phoenix"
45
- "github.com/hashicorp/go- uuid"
45
+ "github.com/google/ uuid"
46
46
)
47
47
48
48
// Driver is exported to allow it to be used directly.
@@ -80,7 +80,7 @@ func (c *Connector) Connect(context.Context) (driver.Conn, error) {
80
80
c .Info ["password" ] = config .avaticaPassword
81
81
}
82
82
83
- connectionId , err := uuid .GenerateUUID ()
83
+ connectionId , err := uuid .NewRandom ()
84
84
if err != nil {
85
85
return nil , fmt .Errorf ("error generating connection id: %w" , err )
86
86
}
@@ -90,7 +90,7 @@ func (c *Connector) Connect(context.Context) (driver.Conn, error) {
90
90
return nil , fmt .Errorf ("unable to create HTTP client: %w" , err )
91
91
}
92
92
conn := & conn {
93
- connectionId : connectionId ,
93
+ connectionId : connectionId . String () ,
94
94
httpClient : httpClient ,
95
95
config : config ,
96
96
connectorInfo : c .Info ,
Original file line number Diff line number Diff line change @@ -3,13 +3,14 @@ module github.com/apache/calcite-avatica-go/v5
3
3
go 1.17
4
4
5
5
require (
6
- github.com/hashicorp/go- uuid v1.0.3
6
+ github.com/google/ uuid v1.6.0
7
7
github.com/icholy/digest v0.1.22
8
8
github.com/jcmturner/gokrb5/v8 v8.4.4
9
9
google.golang.org/protobuf v1.33.0
10
10
)
11
11
12
12
require (
13
+ github.com/hashicorp/go-uuid v1.0.3 // indirect
13
14
github.com/jcmturner/aescts/v2 v2.0.0 // indirect
14
15
github.com/jcmturner/dnsutils/v2 v2.0.0 // indirect
15
16
github.com/jcmturner/gofork v1.7.6 // indirect
Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaS
5
5
github.com/google/go-cmp v0.3.0 /go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU =
6
6
github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU =
7
7
github.com/google/go-cmp v0.5.5 /go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE =
8
+ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0 =
9
+ github.com/google/uuid v1.6.0 /go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo =
8
10
github.com/gorilla/securecookie v1.1.1 h1:miw7JPhV+b/lAHSXz4qd/nN9jRiAFV5FwjeKyCS8BvQ =
9
11
github.com/gorilla/securecookie v1.1.1 /go.mod h1:ra0sb63/xPlUeL+yeDciTfxMRAA+MP+HVt/4epWDjd4 =
10
12
github.com/gorilla/sessions v1.2.1 h1:DHd3rPN5lE3Ts3D8rKkQ8x/0kqfeNmBAaiSi+o7FsgI =
You can’t perform that action at this time.
0 commit comments