[DB-SIG] DB API 2.0... what about NULLs ?

M.-A. Lemburg mal@lemburg.com
Wed, 14 Apr 1999 10:16:51 +0200

I just realized that there is no mention of what to do about
SQL NULL values on the Python side of things.

Maybe we can sneak that definition into 2.0 before Andrew updates
the SIGs web-page...

Most interface modules already do the "right thing" w/r to NULL:
they simply use None as Python equivalent. This means we could add
a sentence:

	  SQL NULL values are represented by the Python
	  None singleton on input and output.

and/or add an aliase NULL for None that the module has to define.

Any ideas ?

Marc-Andre Lemburg                               Y2000: 261 days left
          : Python Pages >>> http://starship.skyport.net/~lemburg/  :