Compare commits

...

1 Commits

Author SHA1 Message Date
G.J.R. Timmer 1549e88b4c Implements #729 2019-08-22 15:41:52 +02:00
1 changed files with 2 additions and 0 deletions

View File

@ -242,6 +242,8 @@ func callbackArgGeneric(v *C.sqlite3_value) (reflect.Value, error) {
func callbackArg(typ reflect.Type) (callbackArgConverter, error) {
switch typ.Kind() {
case reflect.Ptr:
return callbackArg(typ.Elem())
case reflect.Interface:
if typ.NumMethod() != 0 {
return nil, errors.New("the only supported interface type is interface{}")