[APSW] SELECT COUNT(*) not succesfull?

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Wed Oct 22 22:24:01 EDT 2008


En Wed, 22 Oct 2008 20:14:42 -0200, Gilles Ganault <nospam at nospam.com>  
escribió:

> On Wed, 22 Oct 2008 18:35:35 +0200, Bruno Desthuilliers
> <bdesth.quelquechose at free.quelquepart.fr> wrote:
>> It is - the problem is that cursor.execute doesn't return what you
>> think... Truth is that according to the db-api specification, the return
>> value of cursor.execute is not defined (IOW : can be absolutely
>> anything).
>
> OK, I'll check if I can find how to get the result from a SELECT
> COUNT(*) and if not, use a different wrapper. Thanks a lot for the
> embedded comments.

In case you didn't notice, B.D. already provided the answer you're after -  
reread his 3rd paragraph from the end.

-- 
Gabriel Genellina




More information about the Python-list mailing list