Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phortune/query/PhortuneProductQuery.php
| Show First 20 Lines • Show All 99 Lines • ▼ Show 20 Lines | if ($this->refMap !== null) { | ||||
| foreach ($refs as $ref) { | foreach ($refs as $ref) { | ||||
| $sql[] = qsprintf( | $sql[] = qsprintf( | ||||
| $conn, | $conn, | ||||
| '(productClassKey = %s AND productRefKey = %s)', | '(productClassKey = %s AND productRefKey = %s)', | ||||
| PhabricatorHash::digestForIndex($class), | PhabricatorHash::digestForIndex($class), | ||||
| PhabricatorHash::digestForIndex($ref)); | PhabricatorHash::digestForIndex($ref)); | ||||
| } | } | ||||
| } | } | ||||
| $where[] = implode(' OR ', $sql); | $where[] = qsprintf($conn, '%LO', $sql); | ||||
| } | } | ||||
| $where[] = $this->buildPagingClause($conn); | $where[] = $this->buildPagingClause($conn); | ||||
| return $this->formatWhereClause($where); | return $this->formatWhereClause($conn, $where); | ||||
| } | } | ||||
| public function getQueryApplicationClass() { | public function getQueryApplicationClass() { | ||||
| return 'PhabricatorPhortuneApplication'; | return 'PhabricatorPhortuneApplication'; | ||||
| } | } | ||||
| } | } | ||||