Skip to content
Snippets Groups Projects
Commit 11e31f72 authored by Dries Buytaert's avatar Dries Buytaert
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
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -43,7 +43,7 @@ public function __construct(array $connection_options = array()) { ...@@ -43,7 +43,7 @@ public function __construct(array $connection_options = array()) {
// kinds of database systems. These settings force MySQL to behave // kinds of database systems. These settings force MySQL to behave
// the same as postgresql, or sqlite in regards to syntax interpretation // the same as postgresql, or sqlite in regards to syntax interpretation
// and invalid data handling. See http://drupal.org/node/344575 for further disscussion. // 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()) { public function queryRange($query, array $args, $from, $count, array $options = array()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment