File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -247,6 +247,20 @@ var marshalTests = []struct {
247247 nil ,
248248 nil ,
249249 },
250+ {
251+ NativeType {proto : 2 , typ : TypeBigInt },
252+ []byte ("\xf7 \x0c \x6b \x14 \x84 \x49 \x3b \x36 \x4a \x36 \x1e \x03 \x34 \x05 " ),
253+ "-78635384813432117863538481343211" ,
254+ MarshalError ("can not marshal string to bigint: strconv.ParseInt: parsing \" -78635384813432117863538481343211\" : value out of range" ),
255+ nil ,
256+ },
257+ {
258+ NativeType {proto : 2 , typ : TypeBigInt },
259+ []byte ("\x20 \x45 \xce \x3b \x05 \xef \x2d \xde \x51 \xb9 \x28 \x76 \x6d \x6e " ),
260+ "922337203685477692259749625974294" ,
261+ MarshalError ("can not marshal string to bigint: strconv.ParseInt: parsing \" 922337203685477692259749625974294\" : value out of range" ),
262+ nil ,
263+ },
250264 {
251265 NativeType {proto : 2 , typ : TypeBoolean },
252266 []byte ("\x00 " ),
You can’t perform that action at this time.
0 commit comments