mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-23 02:48:34 +08:00
[fix] 遥测参数json字段类型
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user