Skip to content

Commit

Permalink
Merge pull request #33 from dmarkham/sql-typeo
Browse files Browse the repository at this point in the history
typeo in the template var
  • Loading branch information
dmarkham authored Mar 16, 2020
2 parents 3100ad1 + 017d714 commit 9741c5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions golden_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion sql.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9741c5a

Please sign in to comment.