Movatterモバイル変換


[0]ホーム

URL:


homepage

Issue28985

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title:sqlite3 authorizer codes constants not up to date
Type:enhancementStage:resolved
Components:Library (Lib)Versions:Python 3.7
process
Status:closedResolution:fixed
Dependencies:Superseder:
Assigned To:Nosy List: berker.peksag, gumblex, python-dev
Priority:normalKeywords:patch

Created on2016-12-16 03:24 bygumblex, last changed2022-04-11 14:58 byadmin. This issue is nowclosed.

Files
File nameUploadedDescriptionEdit
sqlite3.patchgumblex,2016-12-16 03:24review
Pull Requests
URLStatusLinkedEdit
PR 552closeddstufft,2017-03-31 16:36
Messages (4)
msg283363 -(view)Author: Dingyuan Wang (gumblex)*Date: 2016-12-16 03:24
We have the sqlite3.set_authorizer function, where the first argument to its callback is one of the Authorizer Action Codes that the SQLite documentations defines[1]. However, the constants in the sqlite3 module is not up to date. The code in _sqlite/module.c haven't been updated since June, 2006.According to the SQLite Changelog[2] and digging through the history,* 2006-08-12 (3.3.7) added SQLITE_CREATE_VTABLE, SQLITE_DROP_VTABLE* 2006-10-09 (3.3.8) added SQLITE_FUNCTION* 2009-01-12 (3.6.8) added SQLITE_SAVEPOINT* 2014-02-03 (3.8.3) added SQLITE_RECURSIVEThe constants above should be present in the module. The documentation[3] says, "All necessary constants are available in the sqlite3 module."[1]https://sqlite.org/c3ref/c_alter_table.html[2]https://sqlite.org/changes.html[3]https://docs.python.org/3/library/sqlite3.html#sqlite3.Connection.set_authorizer
msg283365 -(view)Author: Berker Peksag (berker.peksag)*(Python committer)Date: 2016-12-16 06:12
Looks good to me. Thanks for the patch, Dingyuan.Since this is an enhancement request, we can only commit your patch to the default branch so I updated the versions field accordingly.
msg284450 -(view)Author: Roundup Robot (python-dev)(Python triager)Date: 2017-01-02 03:35
New changesetb9c4139a1309 by Berker Peksag in branch 'default':Issue#28985: Update authorizer constants in sqlite3 modulehttps://hg.python.org/cpython/rev/b9c4139a1309
msg284451 -(view)Author: Berker Peksag (berker.peksag)*(Python committer)Date: 2017-01-02 03:36
Thanks, Dingyuan!
History
DateUserActionArgs
2022-04-11 14:58:40adminsetgithub: 73171
2017-03-31 16:36:11dstufftsetpull_requests: +pull_request870
2017-01-02 03:36:40berker.peksagsetstatus: open -> closed
resolution: fixed
messages: +msg284451

stage: patch review -> resolved
2017-01-02 03:35:45python-devsetnosy: +python-dev
messages: +msg284450
2016-12-16 06:12:12berker.peksagsetversions: - Python 2.7, Python 3.3, Python 3.4, Python 3.5, Python 3.6
nosy: +berker.peksag

messages: +msg283365

stage: patch review
2016-12-16 03:24:53gumblexcreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp