소스 검색

Fix unmarshalUDT obsolete - gocql/gocql#973 (#974)

rlk833 8 년 전
부모
커밋
afe4fee3de
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      marshal.go

+ 1 - 0
marshal.go

@@ -1968,6 +1968,7 @@ func unmarshalUDT(info TypeInfo, data []byte, value interface{}) error {
 				if f == emptyValue {
 					// skip fields which exist in the UDT but not in
 					// the struct passed in
+					data = data[size:] // Skip over this data to go to next
 					continue
 				}
 			}