fix sql driver interface for subnet type
Without this fix the interface was not recognized and resulted in an error message.
This commit is contained in:
parent
cb13ceab8f
commit
211877d18b
@ -58,7 +58,7 @@ func (i IP) Is6() bool {
|
||||
//
|
||||
// This function is needed so that a subnet can be inserted into
|
||||
// the database without much casting.
|
||||
func (s *Subnet) Value() (driver.Value, error) {
|
||||
func (s Subnet) Value() (driver.Value, error) {
|
||||
return s.String(), nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user