Преглед изворни кода

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