Fix SELECT list is not in GROUP BY clause and contains nonaggregated column incompatible with sql_mode=only_full_group_by

This commit is contained in:
Fordnox committed 2020-11-01 13:54:55 +02:00
1 parent 3a9091a744
commit 7cea3c9d91
1 file changed
+1
+1
View File
@@ -72,6 +72,7 @@ $di['pdo'] = function() use ($di) {
$pdo->exec( 'SET character_set_server = utf8' ); $pdo->exec( 'SET character_set_server = utf8' );
$pdo->exec( 'SET SESSION interactive_timeout = 28800' ); $pdo->exec( 'SET SESSION interactive_timeout = 28800' );
$pdo->exec( 'SET SESSION wait_timeout = 28800' ); $pdo->exec( 'SET SESSION wait_timeout = 28800' );
$pdo->exec( 'SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,"ONLY_FULL_GROUP_BY",""));' );
} }
return $pdo; return $pdo;