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 serhiy.storchaka
Recipients BreamoreBoy, Claudiu.Popa, eric.araujo, ghaering, jesstess, lemburg, pfalcon, pitrou, serhiy.storchaka, vajrasky
Date 2014-05-26.20:23:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1401135827.95.0.209020733585.issue10203@psf.upfronthosting.co.za>
In-reply-to
Content
Looks good, but there is one detail. Whith issue10203.patch when integer index overflows C long, sqlite3.Row.__getitem__() doesn't raise an exception. Instead overflow exception is raised later.

>>> import sqlite3
>>> con = sqlite3.connect(":memory:")
>>> con.row_factory = sqlite3.Row
>>> row = con.execute("select 1 as a, 2 as b").fetchone()
>>> row[2**1000]
2
>>> 
OverflowError: Python int too large to convert to C long
History
Date User Action Args
2014-05-26 20:23:48serhiy.storchakasetrecipients: + serhiy.storchaka, lemburg, pfalcon, ghaering, pitrou, eric.araujo, jesstess, Claudiu.Popa, BreamoreBoy, vajrasky
2014-05-26 20:23:47serhiy.storchakasetmessageid: <1401135827.95.0.209020733585.issue10203@psf.upfronthosting.co.za>
2014-05-26 20:23:47serhiy.storchakalinkissue10203 messages
2014-05-26 20:23:47serhiy.storchakacreate