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
1 changed files with 1 additions and 1 deletions

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
}