Browse Source

add missing TypeUDT in goType

Chris Bannister 10 years ago
parent
commit
235f84cc80
1 changed files with 2 additions and 0 deletions
  1. 2 0
      helpers.go

+ 2 - 0
helpers.go

@@ -50,6 +50,8 @@ func goType(t TypeInfo) reflect.Type {
 		// what can we do here? all there is to do is to make a list of interface{}
 		tuple := t.(TupleTypeInfo)
 		return reflect.TypeOf(make([]interface{}, len(tuple.Elems)))
+	case TypeUDT:
+		return reflect.TypeOf(make(map[string]interface{}))
 	default:
 		return nil
 	}