Commit e35d5e12 authored by MichaelC's avatar MichaelC

Fetch all should use the driver statement's fetchAll method

parent 1b1adc2a
......@@ -166,12 +166,7 @@ class ResultCacheStatement implements IteratorAggregate, ResultStatement
*/
public function fetchAll($fetchMode = null, $fetchArgument = null, $ctorArgs = null)
{
$rows = [];
while ($row = $this->fetch($fetchMode)) {
$rows[] = $row;
}
return $rows;
return $this->statement->fetchAll($fetchMode, $fetchArgument, $ctorArgs);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment