8000 bpo-44859: Raise more accurate exceptions in `sqlite3` by erlend-aasland · Pull Request #27695 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-44859: Raise more accurate exceptions in sqlite3 #27695

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
Mar 17, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'main' into sqlite-errors
  • Loading branch information
Erlend E. Aasland committed Aug 30, 2021
commit b08d50783652c9b5a4df4f7f64b7377822b78326
3 changes: 1 addition & 2 deletions Modules/_sqlite/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ get_exception_class(pysqlite_state *state, int errorcode)
case SQLITE_MISMATCH:
return state->IntegrityError;
case SQLITE_MISUSE:
PyErr_SetString(state->InterfaceError, sqlite3_errmsg(db));
break;
return state->InterfaceError;
default:
return state->DatabaseError;
}
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.
0