Selaa lähdekoodia

fix to support the date type

evildecay 8 vuotta sitten
vanhempi
commit
f077262a4d
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      helpers.go

+ 2 - 0
helpers.go

@@ -57,6 +57,8 @@ func goType(t TypeInfo) reflect.Type {
 		return reflect.TypeOf(make([]interface{}, len(tuple.Elems)))
 	case TypeUDT:
 		return reflect.TypeOf(make(map[string]interface{}))
+	case TypeDate:
+		return reflect.TypeOf(*new(time.Time))
 	default:
 		return nil
 	}