monitoring: Remove unnecessary columns in the GROUP BY list for MySQL
refs #9956
This commit is contained in:
parent
bcbe7640e7
commit
527b146054
|
@ -1001,6 +1001,9 @@ abstract class IdoQuery extends DbQuery
|
|||
}
|
||||
$groupedTables[$table] = true;
|
||||
}
|
||||
if ($this->getDatasource()->getDbType() !== 'pgsql') {
|
||||
return $group;
|
||||
}
|
||||
$columnIterator = new AppendIterator();
|
||||
$columnIterator->append(new ColumnFilterIterator($this->columns));
|
||||
$columnIterator->append(new ArrayIterator($this->orderColumns));
|
||||
|
@ -1068,7 +1071,7 @@ abstract class IdoQuery extends DbQuery
|
|||
}
|
||||
}
|
||||
|
||||
return $group;
|
||||
return array_unique($group);
|
||||
}
|
||||
|
||||
// TODO: Move this away, see note related to $idoVersion var
|
||||
|
|
Loading…
Reference in New Issue