Skip to content

Commit

Permalink
Merge pull request #125 from LucienShui/fix/gorm_mysql_config
Browse files Browse the repository at this point in the history
fix grom mysql driver
  • Loading branch information
LucienShui authored Oct 7, 2021
2 parents 4c92419 + 3bc29c8 commit 71f42b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model/dao/dao.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func init() {
}
logging.Info("sqlite connect success", zap.String("sqlite_path", sqlitePath))
} else {
if DB, err = gorm.Open(mysql.Open(formatWithConfig(config.Config.Database))); err != nil {
if DB, err = gorm.Open(mysql.Open(formatWithConfig(config.Config.Database)), gormConfig); err != nil {
logging.Panic("connect to mysql failed", zap.Error(err))
return
}
Expand Down

0 comments on commit 71f42b5

Please sign in to comment.