8000 bpo-45243: Add support for setting/getting `sqlite3` connection limits by erlend-aasland · Pull Request #28463 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-45243: Add support for setting/getting sqlite3 connection limits #28463

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
Nov 1, 2021
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
SQLITE_LIMIT_WORKER_THREADS is defined in SQLite 3.8.7, not 3.8.3
  • Loading branch information
Erlend E. Aasland committed Oct 7, 2021
commit fced0ce4eb94143024be57e56eb83b3d7e3934a2
2 changes: 1 addition & 1 deletion Modules/_sqlite/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ static int add_integer_constants(PyObject *module) {
ret += PyModule_AddIntMacro(module, SQLITE_LIMIT_LIKE_PATTERN_LENGTH);
ret += PyModule_AddIntMacro(module, SQLITE_LIMIT_VARIABLE_NUMBER);
ret += PyModule_AddIntMacro(module, SQLITE_LIMIT_TRIGGER_DEPTH);
#if SQLITE_VERSION_NUMBER >= 3008003
#if SQLITE_VERSION_NUMBER >= 3008007
ret += PyModule_AddIntMacro(module, SQLITE_LIMIT_WORKER_THREADS);
#endif
return ret;
Expand Down
0