]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix last Oracle issue
authorThomas Müller <thomas.mueller@tmit.eu>
Mon, 14 Dec 2015 11:04:58 +0000 (12:04 +0100)
committerBjörn Schießle <bjoern@schiessle.org>
Tue, 15 Dec 2015 13:52:27 +0000 (14:52 +0100)
apps/dav/lib/carddav/carddavbackend.php

index 7f7d458d560c26ec36527778fb93ab02cccd7d0c..07b928e9921b933e75df0e3b579f16ee8dc8f990 100644 (file)
@@ -689,7 +689,7 @@ class CardDavBackend implements BackendInterface, SyncSupport {
         */
        public function search($addressBookId, $pattern, $searchProperties) {
                $query = $this->db->getQueryBuilder();
-               $query->selectDistinct(['carddata', 'c'])
+               $query->select('carddata')
                                ->from($this->dbCardsTable, 'c')
                                ->leftJoin('c', $this->dbCardsPropertiesTable, 'cp', $query->expr()->eq('cp.cardid', 'c.id'));
                foreach ($searchProperties as $property) {