mirror of https://github.com/dmarkham/enumer.git
Merge pull request #33 from dmarkham/sql-typeo
typeo in the template var
This commit is contained in:
commit
9741c5ae47
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue