public function rowFetched($row)
{
if ($row !== null) {
$this->rows[$this->fetchedRows++] = $row;
}
list($key, list($entry, , $cb)) = each($this->deferreds[ResultProxy::SINGLE_ROW_FETCH]);
if ($key !== null) {
unset($this->deferreds[ResultProxy::SINGLE_ROW_FETCH][$key]);
$entry->succeed($cb && $row ? $cb($row) : $row);
}
}