You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently inside http://golang.org/src/database/sql/driver/types.go#L230 (switch rv.Kind()), case reflect.String is not handled.
As a result, type like the following can not be scanned without implementing the Valuer interface.
type Test string
func (t Test) Value() (driver.Value, error) {
return driver.String.ConvertValue(c)
}
Is it possible to add reflect.String case to the DefaultParameterConverter so the clients of the sql library does not need to implement the Valuer interface themselves?
The text was updated successfully, but these errors were encountered:
Currently inside http://golang.org/src/database/sql/driver/types.go#L230 (switch rv.Kind()), case reflect.String is not handled.
As a result, type like the following can not be scanned without implementing the Valuer interface.
Is it possible to add reflect.String case to the DefaultParameterConverter so the clients of the sql library does not need to implement the Valuer interface themselves?
The text was updated successfully, but these errors were encountered: