diff --git a/golden_test.go b/golden_test.go index 040fa68..194679b 100644 --- a/golden_test.go +++ b/golden_test.go @@ -1685,7 +1685,7 @@ func (i *Prime) Scan(value interface{}) error { var str string switch v := value.(type) { case []byte: - str = string(b) + str = string(v) case string: str = v case fmt.Stringer: @@ -1872,7 +1872,7 @@ func (i *Prime) Scan(value interface{}) error { var str string switch v := value.(type) { case []byte: - str = string(b) + str = string(v) case string: str = v case fmt.Stringer: diff --git a/sql.go b/sql.go index 2a2906f..09f050c 100644 --- a/sql.go +++ b/sql.go @@ -15,7 +15,7 @@ const scanMethod = `func (i *%[1]s) Scan(value interface{}) error { var str string switch v := value.(type) { case []byte: - str = string(b) + str = string(v) case string: str = v case fmt.Stringer: