Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/query/DiffusionCommitQuery.php
| Show First 20 Lines • Show All 690 Lines • ▼ Show 20 Lines | if ($this->identifiers !== null) { | ||||
| if (!$sql) { | if (!$sql) { | ||||
| // If we discarded all possible identifiers (e.g., they all referenced | // If we discarded all possible identifiers (e.g., they all referenced | ||||
| // bogus repositories or were all too short), make sure the query finds | // bogus repositories or were all too short), make sure the query finds | ||||
| // nothing. | // nothing. | ||||
| throw new PhabricatorEmptyQueryException( | throw new PhabricatorEmptyQueryException( | ||||
| pht('No commit identifiers.')); | pht('No commit identifiers.')); | ||||
| } | } | ||||
| $where[] = '('.implode(' OR ', $sql).')'; | $where[] = qsprintf($conn, '%LO', $sql); | ||||
| } | } | ||||
| if ($this->auditIDs !== null) { | if ($this->auditIDs !== null) { | ||||
| $where[] = qsprintf( | $where[] = qsprintf( | ||||
| $conn, | $conn, | ||||
| 'auditor.id IN (%Ld)', | 'auditor.id IN (%Ld)', | ||||
| $this->auditIDs); | $this->auditIDs); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 145 Lines • Show Last 20 Lines | |||||