diff options
author | kesselb <mail@danielkesselberg.de> | 2021-08-20 18:28:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-20 18:28:17 +0200 |
commit | cd9ee1653b91cfe538b8696245ac33e883294367 (patch) | |
tree | 09fd2a8f3f7dd3f53b77d9d5aa08e2e862445ddb | |
parent | 8be50456e5938f8b7c478adafc0f06c674cff9f3 (diff) | |
parent | bd30d97857fab2ee8a7366c046b74f594c8c5451 (diff) | |
download | nextcloud-server-cd9ee1653b91cfe538b8696245ac33e883294367.tar.gz nextcloud-server-cd9ee1653b91cfe538b8696245ac33e883294367.zip |
Merge pull request #28536 from nextcloud/backport/28452/stable22
[stable22] Set alias for result of cast column function
-rw-r--r-- | apps/workflowengine/lib/Manager.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/workflowengine/lib/Manager.php b/apps/workflowengine/lib/Manager.php index d0eee80ca37..178bc87365b 100644 --- a/apps/workflowengine/lib/Manager.php +++ b/apps/workflowengine/lib/Manager.php @@ -155,7 +155,8 @@ class Manager implements IManager { 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)); |