]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix join condition for oracle
authorThomas Müller <thomas.mueller@tmit.eu>
Tue, 12 Jan 2016 14:44:50 +0000 (15:44 +0100)
committerThomas Müller <thomas.mueller@tmit.eu>
Mon, 18 Jan 2016 21:15:17 +0000 (22:15 +0100)
apps/dav/lib/carddav/carddavbackend.php

index 8385f4857d32f20bc25281a15ba761fbfc8d0393..762946a4fd28e5f20f60a6ce59d3afa828fdd699 100644 (file)
@@ -115,7 +115,7 @@ class CardDavBackend implements BackendInterface, SyncSupport {
                $query = $this->db->getQueryBuilder();
                $result = $query->select(['a.id', 'a.uri', 'a.displayname', 'a.principaluri', 'a.description', 'a.synctoken', 's.uri', 's.access'])
                        ->from('dav_shares', 's')
-                       ->join('s', 'addressbooks', 'a', 's.resourceid = a.id')
+                       ->join('s', 'addressbooks', 'a', $query->expr()->eq('s.resourceid', 'a.id'))
                        ->where($query->expr()->in('s.principaluri', $query->createParameter('principaluri')))
                        ->andWhere($query->expr()->eq('s.type', $query->createParameter('type')))
                        ->setParameter('type', 'addressbook')