mirror of
https://github.com/Icinga/icingadb.git
synced 2026-06-14 20:13:18 -04:00
MySQL/MariaDB: Use strict SQL mode
For MySQL (and MariaDB, etc.), in addition to `ANSI_QUOTES` SQL mode, we now also set `TRADITIONAL`, which enables strict mode.
This commit is contained in:
parent
6876f57c54
commit
16d43cb10a
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue