mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 12:39:25 +01:00
fixed SQL error caused by sql_mode ONLY_FULL_GROUP_BY under MySQL 5.7+ in VFS file-system-check
This commit is contained in:
parent
859f9b7126
commit
6ba07ef64b
@ -104,6 +104,11 @@ class Pdo
|
||||
{
|
||||
case 'mysql':
|
||||
$dsn .= ';charset=utf8';
|
||||
// switch off MySQL 5.7+ ONLY_FULL_GROUP_BY sql_mode
|
||||
if ($egw_db->ServerInfo['version'] >= 5.7 && $egw_db->ServerInfo['version'] < 10.0)
|
||||
{
|
||||
$query = "SET SESSION sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''))";
|
||||
}
|
||||
break;
|
||||
case 'pgsql':
|
||||
$query = "SET NAMES 'utf-8'";
|
||||
|
Loading…
Reference in New Issue
Block a user