summaryrefslogtreecommitdiffstats
path: root/db/mysql
diff options
context:
space:
mode:
authorondras <none@none>2012-01-13 14:31:19 +0100
committerondras <none@none>2012-01-13 14:31:19 +0100
commitb15dbac005ea66b9247f84d60eaa31173dc6e07b (patch)
tree0dbe133dd8adc2e0a278fabb8df27e5fede55b04 /db/mysql
parentb5897ef346835a969eb3e851aee560642c9f5be3 (diff)
downloadwwwsqldesigner-b15dbac005ea66b9247f84d60eaa31173dc6e07b.zip
wwwsqldesigner-b15dbac005ea66b9247f84d60eaa31173dc6e07b.tar.gz
wwwsqldesigner-b15dbac005ea66b9247f84d60eaa31173dc6e07b.tar.bz2
row comments, thanks to d0whc3r
Diffstat (limited to 'db/mysql')
-rw-r--r--db/mysql/output.xsl11
1 files changed, 10 insertions, 1 deletions
diff --git a/db/mysql/output.xsl b/db/mysql/output.xsl
index b93ff27..efc17c9 100644
--- a/db/mysql/output.xsl
+++ b/db/mysql/output.xsl
@@ -86,6 +86,15 @@
<xsl:text></xsl:text>
</xsl:if>
+ <xsl:if test="comment">
+ <xsl-text> COMMENT '</xsl-text>
+ <xsl:call-template name="replace-substring">
+ <xsl:with-param name="value" select="substring(comment, 1, 60)" />
+ <xsl:with-param name="from" select='"&apos;"' />
+ <xsl:with-param name="to" select='"&apos;&apos;"' />
+ </xsl:call-template>
+ <xsl-text>'</xsl-text>
+ </xsl:if>
<xsl:if test="not (position()=last())">
<xsl:text>,
@@ -120,7 +129,7 @@
<xsl:if test="comment">
-<xsl-text> COMMENT='</xsl-text>
+<xsl-text> COMMENT '</xsl-text>
<xsl:call-template name="replace-substring">
<xsl:with-param name="value" select="substring(comment, 1, 60)" />
<xsl:with-param name="from" select='"&apos;"' />