mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-23 02:48:34 +08:00
修复数据上传时sockport的值可能为空的问题导致的错误
Signed-off-by: lixxxww <941403820@qq.com>
This commit is contained in:
@@ -29,7 +29,7 @@ func (s *TdEngine) InsertDevice(deviceKey string, data map[string]interface{}) e
|
||||
|
||||
for k, v := range data {
|
||||
field = append(field, k)
|
||||
value = append(value, kgo.KConv.ToStr(v))
|
||||
value = append(value, fmt.Sprintf("'%s'", kgo.KConv.ToStr(v)))
|
||||
placeholders = append(placeholders, "?")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user