[sqlalchemy] Re: interpret (string) NULLs as empty strings, not None

2009-08-21 Thread Catherine Devlin
On Thu, Aug 6, 2009 at 3:14 PM, Michael Bayermike...@zzzcomputing.com wrote: When populating objects through the ORM, I'd like to interpret all NULL values fetched from VARCHAR2 / NVARCHAR2 columns in the database as empty strings ('') instead of `None`s. use a TypeDecorator that creates

[sqlalchemy] Re: interpret (string) NULLs as empty strings, not None

2009-08-06 Thread Michael Bayer
Catherine Devlin wrote: When populating objects through the ORM, I'd like to interpret all NULL values fetched from VARCHAR2 / NVARCHAR2 columns in the database as empty strings ('') instead of `None`s. Is there any way to set that behavior globally? Failing that, how would you recommend