diff --git a/plugins/db/owa_db_mysql.php b/plugins/db/owa_db_mysql.php index 7f9323eea..0bf753ec7 100644 --- a/plugins/db/owa_db_mysql.php +++ b/plugins/db/owa_db_mysql.php @@ -121,6 +121,9 @@ function connect() { $this->query("SET NAMES 'utf8'"); } + // turn off strict mode. needed on mysql 5.7 and lter when it is turned on by default. + $this->query( "SET SESSION sql_mode=''" ); + } if ( ! $this->connection ) {