From f53c04e5dd9f3f9aa667096d7ca3da23a947782b Mon Sep 17 00:00:00 2001 From: Peter Adams Date: Wed, 25 Oct 2017 20:45:13 -0700 Subject: [PATCH] add query to disable strict mode in mysql db plugin. --- plugins/db/owa_db_mysql.php | 3 +++ 1 file changed, 3 insertions(+) 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 ) {