mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-23 06:18:55 +01:00
need to switch ONLY_FULL_GROUP_BY of for MySQL >= 5.7
This commit is contained in:
parent
b91f3d6da8
commit
420350e5a8
@ -526,7 +526,7 @@ class Db
|
|||||||
$this->set_capabilities($Type,$this->ServerInfo['version']);
|
$this->set_capabilities($Type,$this->ServerInfo['version']);
|
||||||
|
|
||||||
// switch off MySQL 5.7+ ONLY_FULL_GROUP_BY sql_mode
|
// switch off MySQL 5.7+ ONLY_FULL_GROUP_BY sql_mode
|
||||||
if (substr($this->Type, 0, 5) == 'mysql' && $this->ServerInfo['version'] > 5.7 && $this->ServerInfo['version'] < 10.0)
|
if (substr($this->Type, 0, 5) == 'mysql' && $this->ServerInfo['version'] >= 5.7 && $this->ServerInfo['version'] < 10.0)
|
||||||
{
|
{
|
||||||
$this->query("SET SESSION sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''))", __LINE__, __FILE__);
|
$this->query("SET SESSION sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''))", __LINE__, __FILE__);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user