1
0
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:
David E. Wheeler
2015-11-24 15:42:06 -08:00
parent 0384d88412
commit 26c42f1335

2
sql.go
View File

@@ -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
}