فهرست منبع

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 {
 				if f == emptyValue {
 					// skip fields which exist in the UDT but not in
 					// skip fields which exist in the UDT but not in
 					// the struct passed in
 					// the struct passed in
+					data = data[size:] // Skip over this data to go to next
 					continue
 					continue
 				}
 				}
 			}
 			}