增加返回多数据集

phalapi 2.0   
增加返回多数据集
路径: notrom/src/NotORM/Result.php  
 public function queryAllRows($sql, $parmas = array())
{
$result = $this->query($sql, $parmas);

$rows = array();
$rowcount = 0;
if ($result) {
do {
$result->setFetchMode(PDO::FETCH_ASSOC);
foreach ($result as $row) {
if (isset($row[$this->primary])) {
if (!is_string($this->access)) {
$this->access[$this->primary] = true;
}
}
$rows[$rowcount] = $row;
}
$rowcount++;
} while ($result->nextRowset());
}

return $rows;
}
已邀请:

要回复问题请先登录注册