sqlite3 question
Gabriel Genellina
gagsl-py2 at yahoo.com.ar
Sun Apr 15 17:52:13 EDT 2007
En Thu, 12 Apr 2007 08:43:49 -0300, Marc 'BlackJack' Rintsch
<bj_666 at gmx.net> escribió:
> In <mailman.6384.1176363488.32031.python-list at python.org>, Jorgen Bodde
> wrote:
>
>>>>> r = c.execute('select * from song where id = 1')
>>>>> for s in r:
>> ... print s
>> ...
>> (1, u'Spikedrivers Blues', u'Mississippi John Hurt')
> This should not work because `r` should not be a `Cursor` object. The
> `execute()`-Method returns an integer with the number of "affected rows".
Actually DBAPI 2.0 says the return value is undefined.
--
Gabriel Genellina
More information about the Python-list
mailing list