mirror of
https://github.com/google/uuid.git
synced 2025-09-16 09:16:30 +02:00
Value() is on UUID, not *UUID.
This commit is contained in:
2
sql.go
2
sql.go
@@ -61,6 +61,6 @@ func (uuid *UUID) Scan(src interface{}) error {
|
||||
// Value implements sql.Valuer so that UUIDs can be written to databases
|
||||
// transparently. Currently, UUIDs map map to strings. Please consult
|
||||
// database-specific driver documentation for matching types.
|
||||
func (uuid *UUID) Value() (driver.Value, error) {
|
||||
func (uuid UUID) Value() (driver.Value, error) {
|
||||
return uuid.String(), nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user