diff --git a/py-polars/polars/io/database/_executor.py b/py-polars/polars/io/database/_executor.py index 5249f7d0ddfe..f8c22d49d8e0 100644 --- a/py-polars/polars/io/database/_executor.py +++ b/py-polars/polars/io/database/_executor.py @@ -276,7 +276,7 @@ def _from_rows( orient="row", ) for rows in ( - list(self._fetchmany_rows(self.result, batch_size)) + self._fetchmany_rows(self.result, batch_size) if iter_batches else [self._fetchall_rows(self.result)] # type: ignore[list-item] )