$queryLimit,
$descending
);
-
$this->extractResultInfo( $this->mOffset, $queryLimit, $this->mResult );
$this->mQueryDone = true;
* @param $descending Boolean: query direction, false for ascending, true for descending
* @return ResultWrapper
*/
- public function reallyDoQuery( $offset, $limit, $descending ) {
- list( $tables, $fields, $conds, $fname, $options, $join_conds ) = $this->buildQueryInfo( $offset, $limit, $descending );
- $result = $this->mDb->select( $tables, $fields, $conds, $fname, $options, $join_conds );
- return new ResultWrapper( $this->mDb, $result );
- }
-
- /**
- * Build variables to use by the database wrapper.
- *
- * @param $offset String: index offset, inclusive
- * @param $limit Integer: exact query limit
- * @param $descending Boolean: query direction, false for ascending, true for descending
- * @return array
- */
- protected function buildQueryInfo( $offset, $limit, $descending ) {
+ function reallyDoQuery( $offset, $limit, $descending ) {
$fname = __METHOD__ . ' (' . $this->getSqlComment() . ')';
$info = $this->getQueryInfo();
$tables = $info['tables'];
$conds[] = $this->mIndexField . $operator . $this->mDb->addQuotes( $offset );
}
$options['LIMIT'] = intval( $limit );
- return array( $tables, $fields, $conds, $fname, $options, $join_conds );
+ $res = $this->mDb->select( $tables, $fields, $conds, $fname, $options, $join_conds );
+ return new ResultWrapper( $this->mDb, $res );
}
/**