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.
2 parents 593ebcf + 11ab1e2 commit d434fb4Copy full SHA for d434fb4
driver.go
@@ -84,7 +84,7 @@ func (d *MySQLDriver) Open(dsn string) (driver.Conn, error) {
84
err = mc.readResultOK()
85
if err != nil {
86
// Retry with old authentication method, if allowed
87
- if mc.cfg.allowOldPasswords && err == errOldPassword {
+ if mc.cfg != nil && mc.cfg.allowOldPasswords && err == errOldPassword {
88
if err = mc.writeOldAuthPacket(cipher); err != nil {
89
mc.Close()
90
return nil, err
0 commit comments