diff --git a/py-polars/polars/io/database/_executor.py b/py-polars/polars/io/database/_executor.py index ef044d70d139..0c8513ff2f4d 100644 --- a/py-polars/polars/io/database/_executor.py +++ b/py-polars/polars/io/database/_executor.py @@ -384,7 +384,7 @@ def _normalise_cursor(self, conn: Any) -> Cursor: return conn.engine.raw_connection().cursor() elif conn.engine.driver == "duckdb_engine": self.driver_name = "duckdb" - return conn.engine.raw_connection().driver_connection.c + return conn.engine.raw_connection().driver_connection elif self._is_alchemy_engine(conn): # note: if we create it, we can close it self.can_close_cursor = True