|
From: <mcu...@us...> - 2008-11-18 22:29:15
|
Revision: 1336
http://orm.svn.sourceforge.net/orm/?rev=1336&view=rev
Author: mcurland
Date: 2008-11-18 22:29:11 +0000 (Tue, 18 Nov 2008)
Log Message:
-----------
Fix trailing comma in MySQL DDL. Add commas in table definitions before a non-lead element is rendered, not after an earlier one. This fix is not totally bullet proof, but a DDIL renderer would need to not render a column to break it, which is much less likely than not rendering a constraint. fixes #378
Modified Paths:
--------------
trunk/XML/DILtoSQL/DDILtoPostgreSQL.xslt
trunk/XML/DILtoSQL/DDILtoSQLStandard.xslt
trunk/XML/GenerationSamples/SampleModel.MySQL.sql
Modified: trunk/XML/DILtoSQL/DDILtoPostgreSQL.xslt
===================================================================
(Binary files differ)
Modified: trunk/XML/DILtoSQL/DDILtoSQLStandard.xslt
===================================================================
(Binary files differ)
Modified: trunk/XML/GenerationSamples/SampleModel.MySQL.sql
===================================================================
--- trunk/XML/GenerationSamples/SampleModel.MySQL.sql 2008-11-18 19:57:24 UTC (rev 1335)
+++ trunk/XML/GenerationSamples/SampleModel.MySQL.sql 2008-11-18 22:29:11 UTC (rev 1336)
@@ -42,7 +42,7 @@
CONSTRAINT Person_UC8 UNIQUE(mandatoryUniqueString),
CONSTRAINT Person_UC9 UNIQUE(optionalUniqueTinyInt),
CONSTRAINT Person_UC10 UNIQUE(mandatoryUniqueTinyInt),
- CONSTRAINT Person_UC11 UNIQUE(childPersonFather, childPersonBirthOrderNr, childPersonMother),
+ CONSTRAINT Person_UC11 UNIQUE(childPersonFather, childPersonBirthOrderNr, childPersonMother)
);
CREATE TABLE Task
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|