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>
This commit is contained in:
parent
c3a6f50206
commit
30db37bbf2
|
@ -147,10 +147,10 @@ class Manager implements IManager {
|
||||||
public function getAllConfiguredEvents() {
|
public function getAllConfiguredEvents() {
|
||||||
$query = $this->connection->getQueryBuilder();
|
$query = $this->connection->getQueryBuilder();
|
||||||
|
|
||||||
$query->selectDistinct('class')
|
$query->select('class', 'entity', $query->expr()->castColumn('events', IQueryBuilder::PARAM_STR))
|
||||||
->addSelect('entity', 'events')
|
|
||||||
->from('flow_operations')
|
->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();
|
$result = $query->execute();
|
||||||
$operations = [];
|
$operations = [];
|
||||||
|
|
Loading…
Reference in New Issue