This is an automated email from the ASF dual-hosted git repository. jackietien pushed a commit to branch ByteDataType in repository https://gitbox.apache.org/repos/asf/iotdb-client-go.git
commit 74975075f903f29e5cbfb1634f1cacb66f65da8a Author: JackieTien97 <[email protected]> AuthorDate: Thu Jan 21 15:18:08 2021 +0800 change data type in rpc to byte --- client/session.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/session.go b/client/session.go index b78bc4e..339117a 100644 --- a/client/session.go +++ b/client/session.go @@ -486,7 +486,7 @@ func (s *Session) genInsertRecordsReq(deviceIds []string, measurements [][]strin func valuesToBytes(dataTypes []TSDataType, values []interface{}) ([]byte, error) { buff := &bytes.Buffer{} for i, t := range dataTypes { - binary.Write(buff, binary.BigEndian, int16(t)) + binary.Write(buff, binary.BigEndian, byte(t)) v := values[i] if v == nil { return nil, fmt.Errorf("values[%d] can't be nil", i)
