forked from mirror/go-sqlite3
Implements #729
This commit is contained in:
parent
d3c690956b
commit
1549e88b4c
|
@ -242,6 +242,8 @@ func callbackArgGeneric(v *C.sqlite3_value) (reflect.Value, error) {
|
||||||
|
|
||||||
func callbackArg(typ reflect.Type) (callbackArgConverter, error) {
|
func callbackArg(typ reflect.Type) (callbackArgConverter, error) {
|
||||||
switch typ.Kind() {
|
switch typ.Kind() {
|
||||||
|
case reflect.Ptr:
|
||||||
|
return callbackArg(typ.Elem())
|
||||||
case reflect.Interface:
|
case reflect.Interface:
|
||||||
if typ.NumMethod() != 0 {
|
if typ.NumMethod() != 0 {
|
||||||
return nil, errors.New("the only supported interface type is interface{}")
|
return nil, errors.New("the only supported interface type is interface{}")
|
||||||
|
|
Loading…
Reference in New Issue