From 26c42f1335f80f7b66dfec20af4c42bcbfbb3594 Mon Sep 17 00:00:00 2001 From: "David E. Wheeler" Date: Tue, 24 Nov 2015 15:42:06 -0800 Subject: [PATCH] Value() is on UUID, not *UUID. --- sql.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql.go b/sql.go index dd6a1d3..586020c 100644 --- a/sql.go +++ b/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 }