fix: Change URL Value method to use value receiver for database encoding
This commit is contained in:
@@ -39,7 +39,7 @@ func (u *URL) String() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Value implements the driver.Valuer interface
|
// Value implements the driver.Valuer interface
|
||||||
func (u *URL) Value() (driver.Value, error) {
|
func (u URL) Value() (driver.Value, error) {
|
||||||
if u.Full == "" {
|
if u.Full == "" {
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user