reverted default to native password authentication. #1

Merged
tiger5226 merged 1 commit from test_authchanges into master 2018-06-07 00:57:41 +02:00

View file

@ -53,6 +53,7 @@ func MySQLBuildQueryString(user, pass, dbname, host string, port int, sslmode st
}
config.Addr += ":" + strconv.Itoa(port)
config.TLSConfig = sslmode
config.AllowNativePasswords = false
// MySQL is a bad, and by default reads date/datetime into a []byte
// instead of a time.Time. Tell it to stop being a bad.