Skip to content
Snippets Groups Projects
Commit 2874d3c6 authored by Prasad's avatar Prasad
Browse files

Fixes #1747: Override default sql_mode to overcome strict_trans_table

parent 27ff6e7d
No related branches found
No related tags found
No related merge requests found
......@@ -269,6 +269,9 @@ class PearDatabase{
$this->database->Execute($setnameSql);
$this->logSqlTiming($sql_start_time, microtime(true), $setnameSql);
}
// Ensure sql_mode is friendly
$this->database->Execute("SET SESSION sql_mode = 'NO_ENGINE_SUBSTITUTION'");
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment