You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Config.FormatDSN() will override the default values of AllowNativePasswords and MaxAllowedPackets specified in README.md with zero values (false instead of true and 0 instead of 4194304 respectively). This means that using it to generate the DSN to be passed to Open() will cause behaviour that does not match the behaviour specified in this package's documentation.
The respective godoc clearly states that NewConfig() should be used to set defaults if a new config is created instead of parsing it from a DSN string. Otherwise you'll get zero values - that is false and 0.
Issue description
Config.FormatDSN()
will override the default values ofAllowNativePasswords
andMaxAllowedPackets
specified in README.md with zero values (false
instead oftrue
and0
instead of4194304
respectively). This means that using it to generate the DSN to be passed toOpen()
will cause behaviour that does not match the behaviour specified in this package's documentation.Example code
Configuration
Driver version (or git SHA): commit 7413002
Go version:
go version go1.10.2 linux/amd64
Server version: N/A
Server OS: N/A
The text was updated successfully, but these errors were encountered: