This commit is contained in:
G.J.R. Timmer 2019-08-22 15:41:52 +02:00
parent d3c690956b
commit 1549e88b4c
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{}")