[DB-SIG] Extensions to DB API 2.0

Andy Dustman andy@dustman.net
26 Nov 2001 18:15:22 -0500


On Sat, 2001-11-24 at 17:54, Federico Di Gregorio wrote:
> On Sat, 2001-11-24 at 15:54, M.-A. Lemburg wrote:
> > Andy Dustman wrote:
> > > 
> > > On Fri, 2001-11-23 at 06:29, M.-A. Lemburg wrote:
> > > >
> > > >     Cursor Attribute .rownumber
> > > >
> > > >        This read-only attribute should provide the current 0-based
> > > >        index of the cursor in the result set or -1 if the index cannot
> > > >        be determined.
> > > 
> > > Didn't we decide that None was a better choice for this?
> > 
> > Correct. I must have forgotten to update this part.
> 
> mm.. wasn't None for .lastrowid and -1 for .rownumber?

You could be right. Even so, None is a better return value for
.rownumber. I don't know for a fact that there are no databases which
have negative row numbers, but I do know none of them have a row number
of None...

-- 
Andy Dustman         PGP: 0x930B8AB6
    @       .net     http://dustman.net/andy
You can have my keys when you pry them from my dead, cold neurons.