mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-11-21 20:34:57 +09:00
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:
1 parent
3a9091a744
commit
7cea3c9d91
1 file changed
+1
@@ -72,6 +72,7 @@ $di['pdo'] = function() use ($di) {
|
||||
$pdo->exec( 'SET character_set_server = utf8' );
|
||||
$pdo->exec( 'SET SESSION interactive_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;
|
||||
|
||||
Reference in new issue
Block a user