Skip to content

Commit 2a29ba0

Browse files
committed
update
1 parent deb4492 commit 2a29ba0

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

client/conn.go

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77
"fmt"
88
"net"
99
"runtime"
10-
"runtime/debug"
1110
"strings"
1211
"time"
1312

@@ -105,13 +104,9 @@ func ConnectWithDialer(ctx context.Context, network, addr, user, password, dbNam
105104
c := new(Conn)
106105

107106
c.BufferSize = defaultBufferSize
108-
clientVersion := "unknown"
109-
if buildInfo, ok := debug.ReadBuildInfo(); ok {
110-
clientVersion = buildInfo.Main.Version
111-
}
112107
c.attributes = map[string]string{
113-
"_client_name": "go-mysql",
114-
"_client_version": clientVersion,
108+
"_client_name": "go-mysql",
109+
// "_client_version": "0.1",
115110
"_os": runtime.GOOS,
116111
"_platform": runtime.GOARCH,
117112
"_runtime_version": runtime.Version(),

0 commit comments

Comments
 (0)