Repository navigation
Add support for SQLITE_DIRECTONLY and SQLITE_INNOCUOUS for user-defined functions #84943
Description
Activity
Add support for SQLITE_DIRECTONLY and SQLITE_INNOCUOUS in
sqlite3.create_function()andsqlite3.create_aggregate().From the SQLite 3.31.0 changelog:
- Provide the ability to tag application-defined SQL functions with new properties SQLITE_INNOCUOUS or SQLITE_DIRECTONLY.
https://www.sqlite.org/c3ref/c_deterministic.html#sqlitedirectonly
https://www.sqlite.org/changes.html- added3.8 (EOL)end of lifeend of life3.9 (EOL)end of lifeend of life3.10 (EOL)end of lifeend of lifestdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
on May 25, 2020 - addedtype-featureA feature request or enhancementA feature request or enhancement
on May 16, 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.
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.
Metadata
Metadata
Assignees
Labels
Projects
- StatusShow more project fieldsDiscarded
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:
bugs.python.org fields:
Linked PRs