Browse Source
Don't use SELECT DISTINCT when to_char() is used in a WHERE statement
Nice bug in Oracle
Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/22469/head
Joas Schilling
5 years ago
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
1 changed files with
3 additions and
3 deletions
-
apps/workflowengine/lib/Manager.php
|
|
|
@ -147,10 +147,10 @@ class Manager implements IManager { |
|
|
|
public function getAllConfiguredEvents() { |
|
|
|
$query = $this->connection->getQueryBuilder(); |
|
|
|
|
|
|
|
$query->selectDistinct('class') |
|
|
|
->addSelect('entity', 'events') |
|
|
|
$query->select('class', 'entity', $query->expr()->castColumn('events', IQueryBuilder::PARAM_STR)) |
|
|
|
->from('flow_operations') |
|
|
|
->where($query->expr()->neq('events', $query->createNamedParameter('[]'), IQueryBuilder::PARAM_STR)); |
|
|
|
->where($query->expr()->neq('events', $query->createNamedParameter('[]'), IQueryBuilder::PARAM_STR)) |
|
|
|
->groupBy('class', 'entity', $query->expr()->castColumn('events', IQueryBuilder::PARAM_STR)); |
|
|
|
|
|
|
|
$result = $query->execute(); |
|
|
|
$operations = []; |
|
|
|
|