Explorar o código

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

rlk833 %!s(int64=8) %!d(string=hai) anos
pai
achega
afe4fee3de
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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
 				}
 			}