[Zope-DB] Return a Null string instead of a "None" string, DCOracle2

Matthew T. Kromer matt at bane.mi.org
Fri Apr 30 07:36:58 EDT 2004


DCOracle2 never returns "None" as a string -- it will return the None 
singleton.  There's a compile time flag in the source that controls the 
behavior of if a zero-length result is returned as None or not.  The 
default is for this to be OFF, but this is something that is only in 
the CVS source -- the 1.3 release doesn't have that change in it.


On Apr 29, 2004, at 3:59 PM, Remy Pinsonnault wrote:

> Hi,
>  
> I'm running the last DCOracle2 version under Windows XP, Oracle 9i and 
> Python 2.3.
>  
> Right now the product returns a string containing "None" when 
> the result is a zero-length varchar2 (NULL). How can I change this 
> behaviour?
>  
> Can i change something in the source code to get a Null value? At 
> least if I could modify the "None" string to something else it would 
> be better because the application is in spanish and None doesn't look 
> good...
>  
> Thanks in advance
>  
> Remy Pinsonnault
> Information Technology Specialist
> PERCAN PROJECT
> ROCHE LIMITED, CONSULTING GROUP
> _______________________________________________
> Zope-DB mailing list
> Zope-DB at zope.org
> http://mail.zope.org/mailman/listinfo/zope-db
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 1803 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope-db/attachments/20040430/33b7f64e/attachment.bin


More information about the Zope-DB mailing list