未验证 提交 fe5bba47 编写于 作者: X XiaoFu 提交者: GitHub

Merge pull request #2 from XiaoMi/cleanup-test-database

update temp database name format
......@@ -294,8 +294,8 @@ func (ve VirtualEnv) createDatabase(rEnv database.Connector, dbName string) erro
return nil
}
// optimizer_YYMMDD_xxxx
dbHash := fmt.Sprintf("optimizer_%s_%s", time.Now().Format("060102"), uniuri.New())
// optimizer_YYMMDDHHmmss_xxxx
dbHash := fmt.Sprintf("optimizer_%s_%s", time.Now().Format("060102150405"), uniuri.New())
common.Log.Debug("createDatabase, mapping `%s` :`%s`-->`%s`", dbName, dbName, dbHash)
ddl, err := rEnv.ShowCreateDatabase(dbName)
if err != nil {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册