Uh oh!
There was an error while loading. Please reload this page.
bpo-43853: Handle sqlite3_value_text() errors - #25422
Conversation
erlend-aasland
commented
Jun 4, 2021
@pablogsal, see top comment for a description of the changes. Relevant SQLite docs: https://sqlite.org/c3ref/value_blob.html
We call the API's in the following order:
|
Uh oh!
There was an error while loading. Please reload this page.
miss-islington
commented
Jun 4, 2021
Thanks @erlend-aasland for the PR, and @pablogsal for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10. |
erlend-aasland
commented
Jun 4, 2021
Thanks for reviewing, Pablo! |
(cherry picked from commit 006fd86) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
bedevere-bot
commented
Jun 4, 2021
GH-26534 is a backport of this pull request to the 3.10 branch. |
miss-islington
commented
Aug 6, 2021
Thanks @erlend-aasland for the PR, and @pablogsal for merging it 🌮🎉.. I'm working now to backport this PR to: 3.9. |
miss-islington
commented
Aug 6, 2021
Sorry, @erlend-aasland and @pablogsal, I could not cleanly backport this to |
erlend-aasland
commented
Aug 6, 2021
I'll fix the backport. |
bedevere-bot
commented
Aug 6, 2021
GH-27627 is a backport of this pull request to the 3.9 branch. |
(cherry picked from commit 006fd86) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
MemoryErrorifsqlite3_value_text()setsSQLITE_NOMEMsqlite3_value_bytes()to find string length; must be called aftersqlite3_value_text()PyUnicode_FromStringwithPyUnicode_FromStringAndSize()and let errors propagatehttps://bugs.python.org/issue43853