MongoDB: removed iterator to array conversion
This commit is contained in:
parent
c369236333
commit
fd4344c866
|
@ -130,12 +130,12 @@ if (isset($_GET["mongo"])) {
|
||||||
$val = preg_replace('~ DESC$~', '', $val, 1, $count);
|
$val = preg_replace('~ DESC$~', '', $val, 1, $count);
|
||||||
$sort[$val] = ($count ? -1 : 1);
|
$sort[$val] = ($count ? -1 : 1);
|
||||||
}
|
}
|
||||||
return new Min_Result(iterator_to_array($this->_conn->_db->selectCollection($table)
|
return new Min_Result($this->_conn->_db->selectCollection($table)
|
||||||
->find(array(), $select)
|
->find(array(), $select)
|
||||||
->sort($sort)
|
->sort($sort)
|
||||||
->limit(+$limit)
|
->limit(+$limit)
|
||||||
->skip($page * $limit)
|
->skip($page * $limit)
|
||||||
));
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function insert($table, $set) {
|
function insert($table, $set) {
|
||||||
|
|
Loading…
Reference in a new issue