This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author paulmelis
Recipients anders.blomdell@control.lth.se, fviard, ghaering, paulmelis
Date 2013-05-01.08:57:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1367398625.72.0.673784507237.issue10513@psf.upfronthosting.co.za>
In-reply-to
Content
Just a bit more info on the patch. When running stock Python 2.7.4 the attached test script bug-binding_parameter_0.py returns:

module: 2.6.0
sqlite: 3.7.9
Archives
Archives/2011
Archives/2012
Traceback (most recent call last):
  File "bug-binding_parameter_0.py", line 45, in <module>
    cur = dbconn.execute('select uidvalidity from folders where name=?', (folder,))
sqlite3.InterfaceError: Error binding parameter 0 - probably unsupported type.

The error suggests a misuse of the sqlite3 API, but the actual SQLite error is masked. After altering _sqlite/statement.c to include the SQLite error code (as in the patch), we get:

module: 2.6.0
sqlite: 3.7.9
Archives
Archives/2011
Archives/2012
Traceback (most recent call last):
  File "bug-binding_parameter_0.py", line 45, in <module>
    cur = dbconn.execute('select uidvalidity from folders where name=?', (folder,))
sqlite3.InterfaceError: Error binding parameter 0 - probably unsupported type. (sqlite error 21)

Error 21 = SQLITE_MISUSE, suggesting something is definitely wrong in the way the SQLite API is used (for this test case). Commenting out the ACTION_RESET all works fine again:

module: 2.6.0
sqlite: 3.7.9
Archives
Archives/2011
Archives/2012
History
Date User Action Args
2013-05-01 08:57:05paulmelissetrecipients: + paulmelis, ghaering, anders.blomdell@control.lth.se, fviard
2013-05-01 08:57:05paulmelissetmessageid: <1367398625.72.0.673784507237.issue10513@psf.upfronthosting.co.za>
2013-05-01 08:57:05paulmelislinkissue10513 messages
2013-05-01 08:57:05paulmeliscreate