GeneratedConfigTable: Fix group by error

This commit is contained in:
Alexander Fuhr 2015-06-23 14:44:25 +02:00
parent 29820e05ac
commit 8333975662

View File

@ -16,7 +16,7 @@ class GeneratedConfigTable extends QuickTable
'activity_log_id' => 'l.id' 'activity_log_id' => 'l.id'
); );
if ($this->db->getDbType() === 'psql') { if ($this->connection->getDbType() === 'pgsql') {
$columns['checksum'] = "LOWER(ENCODE(c.checksum, 'hex'))"; $columns['checksum'] = "LOWER(ENCODE(c.checksum, 'hex'))";
} }
@ -53,7 +53,7 @@ class GeneratedConfigTable extends QuickTable
array('cf' => 'director_generated_config_file'), array('cf' => 'director_generated_config_file'),
'cf.config_checksum = c.checksum', 'cf.config_checksum = c.checksum',
array() array()
)->group('c.checksum')->order('l.change_time DESC'); )->group('c.checksum')->group('l.id')->order('l.change_time DESC');
return $db->fetchAll($query); return $db->fetchAll($query);
} }