mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-30 04:21:25 +08:00
update pkg/tdengine/tdengine_log.go.
Signed-off-by: PandaX <18610165312@163.com>
This commit is contained in:
@@ -20,7 +20,7 @@ type TdLog struct {
|
|||||||
|
|
||||||
// CreateLogStable 添加LOG超级表
|
// CreateLogStable 添加LOG超级表
|
||||||
func (s *TdEngine) CreateLogStable() (err error) {
|
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)
|
_, err = s.db.Exec(sql, logTableName)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user