thinkphp\library\think\db\Connection.php
/**
* 获得存储过程数据集
* @access protected
* @return array
*/
protected function procedure()
{
$item = [];
do {
$result = $this->getResult();
if ($result) {
$item[] = $result;
}
} while ($this->PDOStatement->nextRowset());
$this->numRows = count($item);
return $item;
}
注释掉 if ($result){} 判断