lidavidm commented on code in PR #3810:
URL: https://github.com/apache/arrow-adbc/pull/3810#discussion_r2624019955


##########
python/adbc_driver_manager/adbc_driver_manager/dbapi.py:
##########
@@ -372,6 +378,11 @@ def close(self) -> None:
         if self._closed:
             return
 
+        # Close all open cursors first to avoid RuntimeError from
+        # AdbcConnection about open children
+        for cursor in list(self._cursors):
+            cursor.close()

Review Comment:
   Sure, but we should at least try and clean up all of the ones we can, IMO



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to