File tree 2 files changed +4
-1
lines changed
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -156,6 +156,8 @@ func (c *Conn) Charset() uint8 {
156
156
return c .charset
157
157
}
158
158
159
+ // Attributes returns the connection attributes.
160
+ // Note that this is only sent to the server if CLIENT_CONNECT_ATTRS is set.
159
161
func (c * Conn ) Attributes () map [string ]string {
160
162
return c .attributes
161
163
}
Original file line number Diff line number Diff line change @@ -51,7 +51,8 @@ func NewDefaultServer() *Server {
51
51
serverVersion : "8.0.11" ,
52
52
protocolVersion : 10 ,
53
53
capability : CLIENT_LONG_PASSWORD | CLIENT_LONG_FLAG | CLIENT_CONNECT_WITH_DB | CLIENT_PROTOCOL_41 |
54
- CLIENT_TRANSACTIONS | CLIENT_SECURE_CONNECTION | CLIENT_PLUGIN_AUTH | CLIENT_SSL | CLIENT_PLUGIN_AUTH_LENENC_CLIENT_DATA ,
54
+ CLIENT_TRANSACTIONS | CLIENT_SECURE_CONNECTION | CLIENT_PLUGIN_AUTH | CLIENT_SSL |
55
+ CLIENT_PLUGIN_AUTH_LENENC_CLIENT_DATA | CLIENT_CONNECT_ATTRS ,
55
56
collationId : DEFAULT_COLLATION_ID ,
56
57
defaultAuthMethod : AUTH_NATIVE_PASSWORD ,
57
58
pubKey : getPublicKeyFromCert (certPem ),
You can’t perform that action at this time.
0 commit comments