我的mysql数据库中有一个存储过程,它返回多个查询结果集。我想使用以下代码语句在cakephp(v3.4)项目中访问这些结果。
$db = ConnectionManager::get('default');
$stmt = $db->execute("call mydatasp($paramlist)");
$result = array();
try{
do
{
$rowset = $stmt->fetchAll('assoc');
$result[]=$rowset;
} while($stmt->nextRowset());
}
catch(Exception $e){}
在执行这个代码块之后,我得到的错误是
[cake\error\fatalerrorexception]调用未定义的方法cake\database\log\loggingstatement::nextrowset()
如何访问这些多个查询结果集?
暂无答案!
目前还没有任何答案,快来回答吧!