mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-23 02:48:34 +08:00
update pkg/tdengine/tdengine_log.go.
Signed-off-by: PandaX <18610165312@163.com>
This commit is contained in:
@@ -20,8 +20,8 @@ type TdLog struct {
|
|||||||
|
|
||||||
// CreateLogStable 添加LOG超级表
|
// CreateLogStable 添加LOG超级表
|
||||||
func (s *TdEngine) CreateLogStable() (err error) {
|
func (s *TdEngine) CreateLogStable() (err error) {
|
||||||
sql := "CREATE TABLE IF NOT EXISTS ? (ts TIMESTAMP,deviceId NCHAR(64),traceId NCHAR(64),type NCHAR(20), content VARCHAR(1000))"
|
sql := fmt.Sprintf("CREATE TABLE IF NOT EXISTS ? (ts TIMESTAMP,deviceId NCHAR(64),traceId NCHAR(64),type NCHAR(20), content VARCHAR(1000))", s.dbName, logTableName)
|
||||||
_, err = s.db.Exec(sql, logTableName)
|
_, err = s.db.Exec(sql)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user