Skip to content

Commit

Permalink
add query to disable strict mode in mysql db plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Adams committed Oct 26, 2017
1 parent 48a27e6 commit f53c04e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/db/owa_db_mysql.php
Expand Up @@ -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 ) {
Expand Down

0 comments on commit f53c04e

Please sign in to comment.