Differential D21864 Diff 52157 src/applications/repository/query/PhabricatorRepositoryRefCursorQuery.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/query/PhabricatorRepositoryRefCursorQuery.php
Show First 20 Lines • Show All 126 Lines • ▼ Show 20 Lines | if ($this->refNames !== null) { | ||||
} | } | ||||
$where[] = qsprintf( | $where[] = qsprintf( | ||||
$conn, | $conn, | ||||
'refNameHash IN (%Ls)', | 'refNameHash IN (%Ls)', | ||||
$name_hashes); | $name_hashes); | ||||
} | } | ||||
if (strlen($this->datasourceQuery)) { | if ($this->datasourceQuery !== null && strlen($this->datasourceQuery)) { | ||||
$where[] = qsprintf( | $where[] = qsprintf( | ||||
$conn, | $conn, | ||||
'refNameRaw LIKE %>', | 'refNameRaw LIKE %>', | ||||
$this->datasourceQuery); | $this->datasourceQuery); | ||||
} | } | ||||
return $where; | return $where; | ||||
} | } | ||||
public function getQueryApplicationClass() { | public function getQueryApplicationClass() { | ||||
return 'PhabricatorDiffusionApplication'; | return 'PhabricatorDiffusionApplication'; | ||||
} | } | ||||
} | } |