typeo in the template var

This commit is contained in:
Dan Markham 2020-03-16 10:52:02 -07:00
parent 3100ad138c
commit 017d714532
No known key found for this signature in database
GPG Key ID: 80673ED3335C219F
2 changed files with 3 additions and 3 deletions

View File

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

2
sql.go
View File

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