mirror of https://github.com/MISP/MISP
fix: [group by] error fixed in diagnostics, fixes #7411
parent
282a9c4047
commit
fae5119388
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue