fixed bug: return error

This commit is contained in:
marco 2016-02-02 15:40:25 +01:00
parent 9e56f9eb23
commit 0a3314337f
1 changed files with 1 additions and 1 deletions

2
sql.go
View File

@ -10,7 +10,7 @@ const valuer = `func (i %[1]s) Value() (driver.Value, error) {
const scanner = `func (i %[1]s) Scan(value interface{}) error {
bytes, ok := value.([]byte)
if !ok {
fmt.Errorf("value is not a byte slice")
return fmt.Errorf("value is not a byte slice")
}
str := string(bytes[:])