[DB-SIG] Database API clarifications
Bill Tutt
billtut@microsoft.com
Fri, 30 Jan 1998 15:35:19 -0800
> -----Original Message-----
> From: M.-A. Lemburg [SMTP:lemburg@uni-duesseldorf.de]
> Sent: Friday, January 30, 1998 8:37 AM
> To: DB-SIG @ Python.org
> Subject: Re: [DB-SIG] Database API clarifications
>
>
> Ok, I see. Well then a method cursor.nextset() should go into the
> API. With the same semantics that Bill proposed:
>
> return 1 if there are more sets and organize for the
> next fetch* calls to return rows from the next set;
> return 0 otherwise.
>
> Interface packages not providing this feature should always
> return 0.
>
> Is that ok ? I'll add to my API 1.1. draft then.
>
Well, close, but preferably return None instead of 0, this is Python after
all. :)
Bill
_______________
DB-SIG - SIG on Tabular Databases in Python
send messages to: db-sig@python.org
administrivia to: db-sig-request@python.org
_______________