Skip to content

Add support for SQLITE_DIRECTONLY and SQLITE_INNOCUOUS for user-defined functions #84943

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

Closed
erlend-aasland opened this issue May 25, 2020 · 2 comments
Labels
3.8 (EOL) end of life 3.9 only security fixes 3.10 only security fixes stdlib Python modules in the Lib dir topic-sqlite3 type-feature A feature request or enhancement

Comments

@erlend-aasland
Copy link
Contributor

BPO 40766
Nosy @erlend-aasland
PRs
  • gh-84943: Add support for 'directonly' and 'innocuous' flags for user-defined functions #20398
  • 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 = None
    closed_at = None
    created_at = <Date 2020-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 = <Date 2020-05-25.20:52:22.374>
    user = 'https://github.com/erlend-aasland'

    bugs.python.org fields:

    activity = <Date 2020-05-25.20:52:22.374>
    actor = 'erlendaasland'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2020-05-25.11:13:46.593>
    creator = 'erlendaasland'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 40766
    keywords = ['patch']
    message_count = 1.0
    messages = ['369871']
    nosy_count = 1.0
    nosy_names = ['erlendaasland']
    pr_nums = ['20398']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue40766'
    versions = ['Python 3.8', 'Python 3.9', 'Python 3.10']

    @erlend-aasland
    Copy link
    Contributor Author

    Add support for SQLITE_DIRECTONLY and SQLITE_INNOCUOUS in sqlite3.create_function() and sqlite3.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

    @erlend-aasland erlend-aasland added 3.8 (EOL) end of life 3.9 only security fixes 3.10 only security fixes stdlib Python modules in the Lib dir labels May 25, 2020
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    @erlend-aasland erlend-aasland added topic-sqlite3 type-feature A feature request or enhancement labels May 16, 2022
    @erlend-aasland erlend-aasland moved this to In Progress in sqlite3 issues May 21, 2022
    @erlend-aasland
    Copy link
    Contributor Author

    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.

    @erlend-aasland erlend-aasland closed this as not planned Won't fix, can't repro, duplicate, stale Jul 23, 2022
    Repository owner moved this from In Progress to Done in sqlite3 issues Jul 23, 2022
    @erlend-aasland erlend-aasland moved this from Done to Discarded in sqlite3 issues Jul 24, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.8 (EOL) end of life 3.9 only security fixes 3.10 only security fixes stdlib Python modules in the Lib dir topic-sqlite3 type-feature A feature request or enhancement
    Projects
    Status: Discarded
    1 participant