classification
Title: [sqlite3] allow clearing the authoriser callback
Type: enhancement Stage: resolved
Components: Extension Modules Versions: Python 3.11
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: erlendaasland Nosy List: erlendaasland, pablogsal
Priority: low Keywords: patch

Created on 2021-06-22 23:30 by erlendaasland, last changed 2021-06-24 15:24 by pablogsal. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 26863 merged erlendaasland, 2021-06-22 23:31
Messages (2)
msg396374 - (view) Author: Erlend E. Aasland (erlendaasland) * (Python triager) Date: 2021-06-22 23:30
Currently, it is possible to clear both the sqlite3 trace callback and progress handler by passing 'None' as the callback/handler, however it is not possible to clear the authoriser callback.

Suggesting to allow clearing the authoriser callback with set_authorizer(None).


See also https://sqlite.org/c3ref/set_authorizer.html
msg396491 - (view) Author: Pablo Galindo Salgado (pablogsal) * (Python committer) Date: 2021-06-24 14:36
New changeset b19f45533942e4ad7ddf9d2d94f8b87c6f746bce by Erlend Egeberg Aasland in branch 'main':
bpo-44491: Allow clearing the sqlite3 authoriser callback (GH-26863)
https://github.com/python/cpython/commit/b19f45533942e4ad7ddf9d2d94f8b87c6f746bce
History
Date User Action Args
2021-06-24 15:24:10pablogsalsetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2021-06-24 14:36:01pablogsalsetnosy: + pablogsal
messages: + msg396491
2021-06-22 23:31:37erlendaaslandsetkeywords: + patch
stage: patch review
pull_requests: + pull_request25438
2021-06-22 23:30:45erlendaaslandcreate