Browse Source

fix(threads): Fix compatibility with Oracle

> oci_execute(): ORA-00918: column ambiguously defined

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/15763/head
Joas Schilling 2 months ago
parent
commit
b8fd26a634
No known key found for this signature in database GPG Key ID: F72FA5B49FFA96B0
  1. 2
      lib/Service/ThreadService.php

2
lib/Service/ThreadService.php

@ -101,7 +101,7 @@ class ThreadService {
$limit = min(100, max(1, $limit));
$query = $this->connection->getQueryBuilder();
$query->select('a.*', 't.*')
$query->select('a.*', 't.last_message_id', 't.num_replies', 't.last_activity', 't.name')
->selectAlias('t.id', 't_id')
->from('talk_thread_attendees', 'a')
->leftJoin('a', 'talk_threads', 't', $query->expr()->eq('a.thread_id', 't.id'))

Loading…
Cancel
Save