update pkg/tdengine/tdengine_log.go.

Signed-off-by: PandaX <18610165312@163.com>
This commit is contained in:
PandaX
2024-08-21 00:05:21 +00:00
committed by Gitee
parent eeaf205ba4
commit 3cea9774c4

View File

@@ -20,7 +20,7 @@ type TdLog struct {
// CreateLogStable 添加LOG超级表
func (s *TdEngine) CreateLogStable() (err error) {
sql := "CREATE STABLE IF NOT EXISTS ? (ts TIMESTAMP,deviceId NCHAR(64),traceId NCHAR(64),type NCHAR(20), content VARCHAR(1000))"
sql := "CREATE TABLE IF NOT EXISTS ? (ts TIMESTAMP,deviceId NCHAR(64),traceId NCHAR(64),type NCHAR(20), content VARCHAR(1000))"
_, err = s.db.Exec(sql, logTableName)
return
}