[Zope-DB] Results object

Matthew T. Kromer matt@zope.com
Fri, 20 Dec 2002 16:41:33 -0500


Andrew Veitch wrote:

>Hi
>
>I volunteered to update the Zope chapter on relational databases. I've got a
>question about the Result.data_dictionary() method
>
>It returns a dictionary of values for name, type, null and width.
>
>Name, type and width are all pretty obvious but I've got no idea what 'null'
>is. It always seems to have the value 1. I've had a look at the source and
>it isn't immediately obvious.
>
>TIA
>
>Andrew
>
>  
>
NULL is probably the DB API value for "Nulls allowed in this column?" 
 If it is true, then a NULL value is legal for the column (ie this is 
the negation of the NOT NULL declaration when creating a table.)