Skip to content

Commit 3f65c08

Browse files
authored
Merge pull request #28537 from nextcloud/backport/28452/stable21
[stable21] Set alias for result of cast column function
2 parents 5c89061 + b3e3ae9 commit 3f65c08

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
@@ -147,7 +147,8 @@ public function getRuleMatcher(): IRuleMatcher {
147147
public function getAllConfiguredEvents() {
148148
$query = $this->connection->getQueryBuilder();
149149

150-
$query->select('class', 'entity', $query->expr()->castColumn('events', IQueryBuilder::PARAM_STR))
150+
$query->select('class', 'entity')
151+
->selectAlias($query->expr()->castColumn('events', IQueryBuilder::PARAM_STR), 'events')
151152
->from('flow_operations')
152153
->where($query->expr()->neq('events', $query->createNamedParameter('[]'), IQueryBuilder::PARAM_STR))
153154
->groupBy('class', 'entity', $query->expr()->castColumn('events', IQueryBuilder::PARAM_STR));

0 commit comments

Comments
 (0)