Improve support for MySQL >=5.7

fixes #12558
This commit is contained in:
Gunnar Beutner 2016-08-27 10:20:34 +02:00
parent 16742f83ba
commit 4dbc07e2bc
2 changed files with 4 additions and 0 deletions

View File

@ -361,6 +361,8 @@ void IdoMysqlConnection::Reconnect(void)
/* set session time zone to utc */
Query("SET SESSION TIME_ZONE='+00:00'");
Query("SET SESSION SQL_MODE='NO_AUTO_VALUE_ON_ZERO'");
Query("BEGIN");
/* update programstatus table */

View File

@ -7,6 +7,8 @@
-- Please check http://docs.icinga.org for upgrading information!
-- -----------------------------------------
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
-- -----------------------------------------
-- #10069 IDO: check_source should not be a TEXT field
-- -----------------------------------------