[fix] 遥测参数json字段类型

This commit is contained in:
PandaX-Go
2024-08-05 19:36:32 +08:00
parent e8b627874f
commit 27b4768613

View File

@@ -83,7 +83,7 @@ func (s *TdEngine) column(dataType, key, name string, maxLength int) string {
if maxLength == 0 {
maxLength = 255
}
tdType = "NCHAR(" + strconv.Itoa(maxLength) + ")"
tdType = "VARCHAR(" + strconv.Itoa(maxLength*10) + ")"
}
column = fmt.Sprintf("%s %s %s", key, tdType, comment)
return column