[Zope] ZSQL: how to definde null
chris-zopemailing at gmx.de
Mon Oct 20 18:57:11 EDT 2003
If posted twice: please excuse (mailserver problem at ISP)
I have a ZSQL method, that looks like
bar = <dtml-sqlvar some_name type="string">
some contitions ... ;
But when the variable "some_name" not is passed to the ZSQL method I
don't want to have 'empty' in my db but a null value. So I changed the
bar = <dtml-if "some_name=='empty'">null<dtml-else><dtml-sqlvar
Maybe the is a more elegant way, like setting the default to null, so I
can get rid of the if clause.
Thanx for any hints!
More information about the Zope