Changeset View
Changeset View
Standalone View
Standalone View
src/applications/almanac/query/AlmanacInterfaceQuery.php
Show First 20 Lines • Show All 115 Lines • ▼ Show 20 Lines | if ($this->addresses !== null) { | ||||
$conn, | $conn, | ||||
'(interface.networkPHID = %s '. | '(interface.networkPHID = %s '. | ||||
'AND interface.address = %s '. | 'AND interface.address = %s '. | ||||
'AND interface.port = %d)', | 'AND interface.port = %d)', | ||||
$address->getNetworkPHID(), | $address->getNetworkPHID(), | ||||
$address->getAddress(), | $address->getAddress(), | ||||
$address->getPort()); | $address->getPort()); | ||||
} | } | ||||
$where[] = implode(' OR ', $parts); | $where[] = qsprintf($conn, '%LO', $parts); | ||||
} | } | ||||
return $where; | return $where; | ||||
} | } | ||||
protected function buildJoinClauseParts(AphrontDatabaseConnection $conn) { | protected function buildJoinClauseParts(AphrontDatabaseConnection $conn) { | ||||
$joins = parent::buildJoinClauseParts($conn); | $joins = parent::buildJoinClauseParts($conn); | ||||
▲ Show 20 Lines • Show All 68 Lines • Show Last 20 Lines |