prmoore77 commented on code in PR #3810:
URL: https://github.com/apache/arrow-adbc/pull/3810#discussion_r2624091343
##########
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:
Ok - I've pushed up a change suppressing cursor close errors. The original
error should still bubble up in case we leave one opened.
--
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]