forked from mirror/go-sqlite3
Compare commits
1 Commits
master
...
feature-po
Author | SHA1 | Date |
---|---|---|
G.J.R. Timmer | 1549e88b4c |
|
@ -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{}")
|
||||
|
|
Loading…
Reference in New Issue