浏览代码

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