Fix last Oracle issue

remotes/origin/fix_emit_scanFiles
Thomas Müller 2015-12-14 12:04:58 +07:00 committed by Björn Schießle
parent e5469a1121
commit 70e9e31497
1 changed files with 1 additions and 1 deletions

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