Skip to content

Commit

Permalink
Fix DISTINCT SQL build
Browse files Browse the repository at this point in the history
Signed-off-by: William Desportes <williamdes@wdes.fr>
  • Loading branch information
williamdes committed Mar 8, 2021
1 parent 2330ba6 commit 098890c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Model/Table/ReportsTable.php
Expand Up @@ -135,14 +135,14 @@ public function getIncidentsWithDifferentStacktrace(): Query
{
return TableRegistry::getTableLocator()->get('Incidents')->find('all', [
'fields' => [
'DISTINCT Incidents.stackhash',
'Incidents.stackhash',
'Incidents.stacktrace',
'Incidents.full_report',
'Incidents.exception_type',
],
'conditions' => $this->relatedIncidentsConditions(),
'group' => 'Incidents.stackhash',
]);
])->distinct(['Incidents.stackhash']);
}

/**
Expand Down

0 comments on commit 098890c

Please sign in to comment.