'Fetch all the rows'

def fetchall(self):

    self._check_executed()
    if (self._rows is None):
        return ()
    if self.rownumber:
        result = self._rows[self.rownumber:]
    else:
        result = self._rows
    self.rownumber = len(self._rows)
    return result
