Try pointer for Port

This commit is contained in:
Tim Vaillancourt 2023-01-17 21:10:32 +01:00
parent e7ae42060e
commit fc9cbb17cc

View File

@ -8,7 +8,7 @@ package mysql
import gosql "database/sql" import gosql "database/sql"
// Port represents a MySQL server port. // Port represents a MySQL server port.
type Port gosql.NullInt64 type Port *gosql.NullInt64
// NewPort creates a new Port. // NewPort creates a new Port.
func NewPort(port int64) Port { func NewPort(port int64) Port {