diff --git a/compress.go b/compress.go index fa42772a..cb23c3cf 100644 --- a/compress.go +++ b/compress.go @@ -27,7 +27,7 @@ func init() { } zwPool = &sync.Pool{ New: func() any { - zw, err := zlib.NewWriterLevel(new(bytes.Buffer), 2) + zw, err := zlib.NewWriterLevel(new(bytes.Buffer), zlib.BestCompression) if err != nil { panic(err) // compress/zlib return non-nil error only if level is invalid } diff --git a/driver.go b/driver.go index 105316b8..0211010d 100644 --- a/driver.go +++ b/driver.go @@ -89,7 +89,7 @@ func (d MySQLDriver) Open(dsn string) (driver.Conn, error) { // This variable can be replaced with -ldflags like below: // go build "-ldflags=-X github.com/go-sql-driver/mysql.driverName=custom" -var driverName = "mysql" +var driverName = "mysql-myli" func init() { if driverName != "" { diff --git a/go.mod b/go.mod index 33c4dd5b..a25dc540 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/go-sql-driver/mysql +module github.com/myLocalInfluence/mysql go 1.21