We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 361f66e commit c07f37bCopy full SHA for c07f37b
driver.go
@@ -123,7 +123,8 @@ func (d MySQLDriver) Open(dsn string) (driver.Conn, error) {
123
}
124
if err = mc.writeHandshakeResponsePacket(authResp, addNUL, plugin); err != nil {
125
mc.cleanup()
126
- return nil, err
+ // errBadConnNoWrite should be replaced with driver.ErrBadConn for resend
127
+ return nil, mc.markBadConn(err)
128
129
130
// Handle response to auth packet, switch methods if possible
0 commit comments