db-ddlutils-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joachim Wackerow <wacke...@zuma-mannheim.de>
Subject DEFAULT 'NULL' instead of DEFAULT NULL
Date Mon, 13 Mar 2006 20:08:56 GMT

I just started to try DdlUtils. I encountered following problem:

A default NULL results in 'NULL' in the SQL code not in NULL without the 

<column name="organisation" type="VARCHAR" size="50" default="NULL"/>
results in SQL code
organisation VARCHAR(50) DEFAULT 'NULL',

How can I define the NULL value in the XML file, so it does not get 
interpreted as a string value? Does exist some escape character? I 
looked thru the documentation, in some source files, and searched the 
mailing list, but didn't find anything. Did I overlook something?

Same problem with CURRENT_TIMESTAMP

<column name="timestamp" type="TIMESTAMP" default="CURRENT_TIMESTAMP"/>
results in SQL code

I like the idea of DdlUtils very much.


View raw message