Commit 11e31f72 authored by Dries's avatar Dries
Browse files

- Patch #567148 by Damien Tournoud: enable ONLY_FULL_GROUP_BY for MySQL to...

- Patch #567148 by Damien Tournoud: enable ONLY_FULL_GROUP_BY for MySQL to enforce proper SQL queries.
parent 04fd76dc
......@@ -43,7 +43,7 @@ public function __construct(array $connection_options = array()) {
// kinds of database systems. These settings force MySQL to behave
// the same as postgresql, or sqlite in regards to syntax interpretation
// and invalid data handling. See http://drupal.org/node/344575 for further disscussion.
$this->exec("SET sql_mode='ANSI,TRADITIONAL'");
$this->exec("SET sql_mode='ANSI,TRADITIONAL,ONLY_FULL_GROUP_BY'");
}
public function queryRange($query, array $args, $from, $count, array $options = array()) {
......
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