[Zope] ZOracleDA-beta5 problem; possible bug running NT

Behrens Matt - Grand Rapids Matt.Behrens@Kohler.Com
Tue, 04 Sep 2001 10:27:12 -0400


Stig-Arne Nordin wrote:

 > If you encounter a null value in the datbase zope returns the value None
 > under NT.
 > At least if it is an integer field.


I gather this is something new with the new DBAPI 2.0-based adapters.
In any event, the way to handle it is like so:

	<dtml-var field null>



"null" tells DTML to render "None" (which means no object) as an empty
string.

IMO, the whole "None" thing with SQL does violate the principle of least
surprise, though.

-- 
Matt Behrens <matt.behrens@kohler.com>
System Analyst, Baker Furniture