* If this returns an empty array for a non-empty query result, then all the rows
* had the same column value and the query should be repeated with a higher LIMIT.
*
- * @TODO: move this elsewhere
+ * @todo move this elsewhere
*
* @param ResultWrapper $res Query result sorted by $column (ascending)
* @param string $column
}
}
$lastValueLeft = count( $rows ) ? $rows[count( $rows ) - 1]->$column : null;
+
return array( $rows, $lastValueLeft );
}
}