diff --git a/packets.go b/packets.go index 8e50a8e4..a0dc60d9 100644 --- a/packets.go +++ b/packets.go @@ -328,10 +328,6 @@ func (mc *mysqlConn) writeHandshakeResponsePacket(authResp []byte, plugin string connectAttrsBuf = appendLengthEncodedString(connectAttrsBuf, []byte("github.com/go-sql-driver/mysql")) for k, v := range mc.cfg.ConnectAttrs { - if k == "_client_name" { - // do not allow overwriting reserved values - continue - } connectAttrsBuf = appendLengthEncodedString(connectAttrsBuf, []byte(k)) connectAttrsBuf = appendLengthEncodedString(connectAttrsBuf, []byte(v)) }