edgarrmondragon commented on PR #5029: URL: https://github.com/apache/arrow-adbc/pull/5029#issuecomment-6967367950
> once we finalize support for warning handlers Is there an issue tracking this? or a discussion about it somewhere? > [...] we could deliver the status as a warning? Yeah, happy to help with that :) > I'm also curious what other wrappers (e.g. stdlib sqlite3) do for this Interestingly, CPython only started checking the `sqlite3_reset()` return code in 3.15: - https://github.com/python/cpython/pull/139329 and raises `sqlite3.InternalError("cannot reset statement")` whenever it's not `SQLITE_OK`. I think the counterpart to our reset is at https://github.com/python/cpython/blob/3ad9316217ba4e2788abc7d19f469762c6c38309/Modules/_sqlite/cursor.c#L855-L860 (though they do handle the return code). FWIW, the driver already handles resets between rows of bound parameters (e.g. from DB-API `executemany`): https://github.com/apache/arrow-adbc/blob/833b2137f7ab7a956e7b394fc191370753805f4e/c/driver/sqlite/statement_reader.c#L340-L348 which has its CPython equivalent at https://github.com/python/cpython/blob/3ad9316217ba4e2788abc7d19f469762c6c38309/Modules/_sqlite/cursor.c#L965-L974 -- 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]
