mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 00:02:54 -04:00
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 <mail@danielkesselberg.de>
This commit is contained in:
parent
8be50456e5
commit
bd30d97857
1 changed files with 2 additions and 1 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in a new issue