[New-bugs-announce] [issue29355] sqlite3: remove sqlite3_stmt_readonly()

Ma Lin report at bugs.python.org
Mon Jan 23 23:38:13 EST 2017


New submission from Ma Lin:

In CPython 3.6.0, sqlite3 module uses sqlite3_stmt_readonly(), however this function is only available on SQLite 3.7.4+ (release on 2010-12-07).
Then CPython 3.6.0 can not be compiled on RHEL6 (with SQLite 3.6.x), complaints: issue29098, issue29325.

sqlite3_stmt_readonly() was introduced in 284676cf2ac8, it was used twice [1][2], but it seems that we can avoid using this function in both of them.

[1] https://hg.python.org/cpython/file/3.6/Modules/_sqlite/cursor.c#l517
With palaviv's patches of issue28518, we can eliminate sqlite3_stmt_readonly() in here.

[2] https://hg.python.org/cpython/file/3.6/Modules/_sqlite/cursor.c#l612
We can use the old way in here, the old way is even better IMO.

This issue depends on issue28518.

----------
components: Library (Lib)
messages: 286130
nosy: Ma Lin, berker.peksag, palaviv
priority: normal
severity: normal
status: open
title: sqlite3: remove sqlite3_stmt_readonly()
type: enhancement
versions: Python 3.6, Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29355>
_______________________________________


More information about the New-bugs-announce mailing list