You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add support for SQLITE_DIRECTONLY and SQLITE_INNOCUOUS for user-defined functions #84943
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=Nonecreated_at=<Date2020-05-25.11:13:46.593>labels= ['3.8', 'library', '3.9', '3.10']
title='Add support for SQLITE_DIRECTONLY and SQLITE_INNOCUOUS for user-defined functions'updated_at=<Date2020-05-25.20:52:22.374>user='https://github.com/erlend-aasland'
I'm closing this; there has been no other requests for such features, and there has been no response to this ticket. If the need for these flags arises, we can reopen, or create a new issue.
Requesting reopen. I'm using triggers to keep multiple full-text search tables in sync with each other and with the content tables, and I want to use a str -> str Python function in the body of those triggers, which requires marking it innocuous or giving up trusted_schema protection. I wouldn't normally request this given no one else has asked for it in years, but trusted_schema is a security feature, so I think it merits supporting in the standard library. I updated your PR.
Activity
erlend-aasland commentedon May 25, 2020
Add support for SQLITE_DIRECTONLY and SQLITE_INNOCUOUS in
sqlite3.create_function()andsqlite3.create_aggregate().From the SQLite 3.31.0 changelog:
https://www.sqlite.org/c3ref/c_deterministic.html#sqlitedirectonly
https://www.sqlite.org/changes.html
erlend-aasland commentedon Jul 23, 2022
I'm closing this; there has been no other requests for such features, and there has been no response to this ticket. If the need for these flags arises, we can reopen, or create a new issue.
pythongh-84943: Add support for 'directonly' and 'innocuous' flags fo…
pythongh-84943: Add support for 'directonly' and 'innocuous' flags fo…
jbosboom commentedon May 17, 2026
Requesting reopen. I'm using triggers to keep multiple full-text search tables in sync with each other and with the content tables, and I want to use a str -> str Python function in the body of those triggers, which requires marking it innocuous or giving up trusted_schema protection. I wouldn't normally request this given no one else has asked for it in years, but trusted_schema is a security feature, so I think it merits supporting in the standard library. I updated your PR.
pythongh-84943: Add support for 'directonly' and 'innocuous' flags fo…
pythongh-84943: Add support for 'directonly' and 'innocuous' flags fo…
pythongh-84943: Add support for 'directonly' and 'innocuous' flags fo…