[DB-SIG] cursor.description - values for 'I don't know'
Gerhard Häring
haering_postgresql@gmx.de
Sat, 4 Jan 2003 00:35:18 +0100
* M.-A. Lemburg <mal@lemburg.com> [2003-01-04 00:21 +0100]:
> Gerhard Häring wrote:
> >Heya,
> >
> >what's the preferred value for the various fields in the
> >cursor.description tuples when they're not known? -1? 0? None?
>
> None.
Thanks.
> >Yet another issue that the DB-API spec should clarify IMO.
>
> Doesn't it already ?
>
> """
> .description
> [...] must be set to None if meaningfull values are not provided.
> """
I'll try investigating new ways of making a fool of myself for next time
;-)
Gerhard
--
Favourite database: http://www.postgresql.org/
Favourite programming language: http://www.python.org/
Combine the two: http://pypgsql.sf.net/
Embedded database for Python: http://pysqlite.sf.net/