mirror of
https://github.com/Icinga/icingadb.git
synced 2026-06-03 14:00:11 -04:00
Merge pull request #699 from Icinga/mysql-strict-mode
MySQL/MariaDB: Use strict SQL mode
This commit is contained in:
commit
112f6d7966
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