Skip to content

Commit

Permalink
Merge pull request #699 from Icinga/mysql-strict-mode
Browse files Browse the repository at this point in the history
MySQL/MariaDB: Use strict SQL mode
  • Loading branch information
julianbrost authored Mar 21, 2024
2 parents 16f4ac6 + 16d43cb commit 112f6d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/config/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func (d *Database) Open(logger *logging.Logger) (*icingadb.DB, error) {

config.DBName = d.Database
config.Timeout = time.Minute
config.Params = map[string]string{"sql_mode": "ANSI_QUOTES"}
config.Params = map[string]string{"sql_mode": "'TRADITIONAL,ANSI_QUOTES'"}

tlsConfig, err := d.TlsOptions.MakeConfig(d.Host)
if err != nil {
Expand Down

0 comments on commit 112f6d7

Please sign in to comment.