Try pointer for Port
This commit is contained in:
parent
e7ae42060e
commit
fc9cbb17cc
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user