]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-69093: improve sqlite3.Connection.blobopen() error handling (GH-91571)
authorErlend Egeberg Aasland <erlend.aasland@innova.no>
Fri, 15 Apr 2022 16:27:39 +0000 (18:27 +0200)
committerGitHub <noreply@github.com>
Fri, 15 Apr 2022 16:27:39 +0000 (09:27 -0700)
commitc06a4ffe818feddef3b5083d9746a1c0b82c84ab
treec7a3ab790eaae2fe34284bbbd74b212856875e29
parent1b34b5687b20a54cff2158c8660201e7377dec21
gh-69093: improve sqlite3.Connection.blobopen() error handling (GH-91571)

Unless sqlite3_blob_open() returns SQLITE_MISUSE, the error code and
message are available on the connection object. This means we have to
handle SQLITE_MISUSE error messages explicitly.
Modules/_sqlite/connection.c