diff options
author | ondrej.zara <none@none> | 2011-05-04 06:08:04 +0000 |
---|---|---|
committer | ondrej.zara <none@none> | 2011-05-04 06:08:04 +0000 |
commit | d4d02b5afd94a2dbdc3360fd23c8e6d0c6021917 (patch) | |
tree | 9efec7a2272dc3c13ba43667614ff94057d2b0e7 | |
parent | d96248cded5924ffb735adb8c83aa52f450d420e (diff) | |
download | wwwsqldesigner-d4d02b5afd94a2dbdc3360fd23c8e6d0c6021917.zip wwwsqldesigner-d4d02b5afd94a2dbdc3360fd23c8e6d0c6021917.tar.gz wwwsqldesigner-d4d02b5afd94a2dbdc3360fd23c8e6d0c6021917.tar.bz2 |
bugfix in mysql null timestamps - thanks to Vincent Volpi
--HG--
extra : convert_revision : svn%3Ab267cdba-c1da-11dd-874b-8bacd04a0a74/trunk%40124
-rw-r--r-- | db/mysql/output.xsl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/db/mysql/output.xsl b/db/mysql/output.xsl index 876af11..b93ff27 100644 --- a/db/mysql/output.xsl +++ b/db/mysql/output.xsl @@ -71,9 +71,10 @@ <xsl:value-of select="datatype" /> <xsl:text></xsl:text> - <xsl:if test="@null = 0"> - <xsl:text> NOT NULL</xsl:text> - </xsl:if> + <xsl:choose> + <xsl:when test="@null = 0"> NOT NULL</xsl:when> + <xsl:otherwise> NULL</xsl:otherwise> + </xsl:choose> <xsl:if test="@autoincrement = 1"> <xsl:text> AUTO_INCREMENT</xsl:text> |