Fix grouping of host- and servicegroup queries

It's a rather quick fix but fixes the problem. We should take another look whether
a more sophisticated solution can be found.

refs #10316
This commit is contained in:
Johannes Meyer 2015-10-10 20:04:04 +02:00
parent d6432cd881
commit 35c7ed81a7

View File

@ -1001,9 +1001,9 @@ abstract class IdoQuery extends DbQuery
} }
$groupedTables[$table] = true; $groupedTables[$table] = true;
} }
if ($this->getDatasource()->getDbType() !== 'pgsql') { /*if ($this->getDatasource()->getDbType() !== 'pgsql') {
return $group; return $group;
} }*/
$columnIterator = new AppendIterator(); $columnIterator = new AppendIterator();
$columnIterator->append(new ColumnFilterIterator($this->columns)); $columnIterator->append(new ColumnFilterIterator($this->columns));
$columnIterator->append(new ArrayIterator($this->orderColumns)); $columnIterator->append(new ArrayIterator($this->orderColumns));