You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by hx...@apache.org on 2021/01/21 09:10:20 UTC
[iotdb-client-go] branch main updated: change data type in rpc from
short to byte for fitting v0.12 (#10)
This is an automated email from the ASF dual-hosted git repository.
hxd pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iotdb-client-go.git
The following commit(s) were added to refs/heads/main by this push:
new 7e78edb change data type in rpc from short to byte for fitting v0.12 (#10)
7e78edb is described below
commit 7e78edbbe5230ff6f86bb223d0c263e57ca18114
Author: Jackie Tien <Ja...@foxmail.com>
AuthorDate: Thu Jan 21 17:10:11 2021 +0800
change data type in rpc from short to byte for fitting v0.12 (#10)
---
client/session.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/client/session.go b/client/session.go
index a0901a1..a7ed4ec 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)