소스 검색

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},
 }