forked from extern/egroupware
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
4f9f0fd228
commit
4fb658c2f3
@ -104,6 +104,11 @@ class Pdo
|
|||||||
{
|
{
|
||||||
case 'mysql':
|
case 'mysql':
|
||||||
$dsn .= ';charset=utf8';
|
$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;
|
break;
|
||||||
case 'pgsql':
|
case 'pgsql':
|
||||||
$query = "SET NAMES 'utf-8'";
|
$query = "SET NAMES 'utf-8'";
|
||||||
|
Loading…
Reference in New Issue
Block a user