Skip to content

Commit

Permalink
feat(core): fix up clear text typo
Browse files Browse the repository at this point in the history
  • Loading branch information
hkdeman committed Sep 25, 2024
1 parent 840523f commit 41a3ea5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/plugins/mysql/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func DB(config *engine.PluginConfig) (*gorm.DB, error) {
parseTime := common.GetRecordValueOrDefault(config.Credentials.Advanced, "Parse Time", "True")
loc := common.GetRecordValueOrDefault(config.Credentials.Advanced, "Loc", "Local")
allowClearTextPasswords := common.GetRecordValueOrDefault(config.Credentials.Advanced, "Allow clear text passwords", "0")
dsn := fmt.Sprintf("%v:%v@tcp(%v:%v)/%v?charset=%v&parseTime=%v&loc=%v&allowClearTextPasswords=%v", config.Credentials.Username, config.Credentials.Password, config.Credentials.Hostname, port, config.Credentials.Database, charset, parseTime, loc, allowClearTextPasswords)
dsn := fmt.Sprintf("%v:%v@tcp(%v:%v)/%v?charset=%v&parseTime=%v&loc=%v&allowCleartextPasswords=%v", config.Credentials.Username, config.Credentials.Password, config.Credentials.Hostname, port, config.Credentials.Database, charset, parseTime, loc, allowClearTextPasswords)
db, err := gorm.Open(mysql.Open(dsn), &gorm.Config{})
if err != nil {
return nil, err
Expand Down

0 comments on commit 41a3ea5

Please sign in to comment.