Commit 98b4cdbe authored by webchick's avatar webchick
Browse files

#303054 by chx: Enforce MySQL strict mode.

parent f6a42634
......@@ -30,6 +30,7 @@ public function __construct(Array $connection_options = array()) {
// Because MySQL's prepared statements skip the query cache, because it's dumb.
PDO::ATTR_EMULATE_PREPARES => TRUE,
));
$this->exec('SET sql_mode=STRICT_ALL_TABLES');
}
public function queryRange($query, Array $args, $from, $count, Array $options) {
......
Markdown is supported
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