fix: [group by] error fixed in diagnostics, fixes #7411

pull/7459/head
iglocska 2021-05-20 09:40:42 +02:00
parent 282a9c4047
commit fae5119388
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 1 additions and 1 deletions

View File

@ -2639,7 +2639,7 @@ class Server extends AppModel
$dataSource = $this->getDataSource()->config['datasource'];
if ($dataSource === 'Database/Mysql' || $dataSource === 'Database/MysqlObserver') {
$sql = sprintf(
'select TABLE_NAME, DATA_LENGTH, INDEX_LENGTH, DATA_FREE from information_schema.tables where table_schema = %s group by TABLE_NAME;',
'select TABLE_NAME, DATA_LENGTH, INDEX_LENGTH, DATA_FREE from information_schema.tables where table_schema = %s group by TABLE_NAME, DATA_LENGTH, INDEX_LENGTH, DATA_FREE;',
"'" . $this->getDataSource()->config['database'] . "'"
);
$sqlResult = $this->query($sql);