Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Set alias for result of cast column function
On OCI an expression like to_char(events) end up as $row['to_char(events)'] in the query result.

Signed-off-by: Daniel Kesselberg <[email protected]>
  • Loading branch information
kesselb authored and backportbot[bot] committed Aug 20, 2021
commit b3e3ae943434931b7a98b9989b8acf07d8b13055
3 changes: 2 additions & 1 deletion apps/workflowengine/lib/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ public function getRuleMatcher(): IRuleMatcher {
public function getAllConfiguredEvents() {
$query = $this->connection->getQueryBuilder();

$query->select('class', 'entity', $query->expr()->castColumn('events', IQueryBuilder::PARAM_STR))
$query->select('class', 'entity')
->selectAlias($query->expr()->castColumn('events', IQueryBuilder::PARAM_STR), 'events')
->from('flow_operations')
->where($query->expr()->neq('events', $query->createNamedParameter('[]'), IQueryBuilder::PARAM_STR))
->groupBy('class', 'entity', $query->expr()->castColumn('events', IQueryBuilder::PARAM_STR));
Expand Down