فهرست منبع

Fix bug whereby the metadata for sets and lists was being mapped to the inet type

Ben Hood 10 سال پیش
والد
کامیت
84a4bd0bad
2فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 2 2
      helpers.go
  2. 2 2
      marshal_test.go

+ 2 - 2
helpers.go

@@ -97,9 +97,9 @@ func getApacheCassandraType(class string) Type {
 		case "MapType":
 			return TypeMap
 		case "ListType":
-			return TypeInet
+			return TypeList
 		case "SetType":
-			return TypeInet
+			return TypeSet
 		}
 	}
 	return TypeCustom

+ 2 - 2
marshal_test.go

@@ -666,8 +666,8 @@ var typeLookupTest = []struct {
 	{"TimeUUIDType", TypeTimeUUID},
 	{"InetAddressType", TypeInet},
 	{"MapType", TypeMap},
-	{"ListType", TypeInet},
-	{"SetType", TypeInet},
+	{"ListType", TypeList},
+	{"SetType", TypeSet},
 	{"unknown", TypeCustom},
 }