Skip to content

Commit cd9ee16

Browse files
authored
Merge pull request #28536 from nextcloud/backport/28452/stable22
[stable22] Set alias for result of cast column function
2 parents 8be5045 + bd30d97 commit cd9ee16

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/workflowengine/lib/Manager.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,8 @@ public function getRuleMatcher(): IRuleMatcher {
155155
public function getAllConfiguredEvents() {
156156
$query = $this->connection->getQueryBuilder();
157157

158-
$query->select('class', 'entity', $query->expr()->castColumn('events', IQueryBuilder::PARAM_STR))
158+
$query->select('class', 'entity')
159+
->selectAlias($query->expr()->castColumn('events', IQueryBuilder::PARAM_STR), 'events')
159160
->from('flow_operations')
160161
->where($query->expr()->neq('events', $query->createNamedParameter('[]'), IQueryBuilder::PARAM_STR))
161162
->groupBy('class', 'entity', $query->expr()->castColumn('events', IQueryBuilder::PARAM_STR));

0 commit comments

Comments
 (0)