Commit 24f171b4 authored by Geoff Cant's avatar Geoff Cant Committed by Geoff Cant
Browse files

When setting up a mysql db connection, set the SQL_MODE to postgres compatible.

parent 285244d0
...@@ -1289,6 +1289,10 @@ function configure_dbconnection() { ...@@ -1289,6 +1289,10 @@ function configure_dbconnection() {
increment_perf_db_writes(); increment_perf_db_writes();
$db->Execute("SET NAMES 'utf8'"); $db->Execute("SET NAMES 'utf8'");
if ( is_mysql() ) {
$db->Execute("SET SQL_MODE='POSTGRESQL'");
}
// more later.. // more later..
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment