Revision: 3520
Author: mo.jeff
Date: Mon May 10 13:28:45 2010
Log: Fixed a bug where setting the column's precision and scale would not show up in forward engineering.
http://code.google.com/p/power-architect/source/detail?r=3520

Modified:
 /trunk/src/main/java/ca/sqlpower/architect/ddl/GenericDDLGenerator.java

=======================================
--- /trunk/src/main/java/ca/sqlpower/architect/ddl/GenericDDLGenerator.java Mon May 10 11:25:06 2010 +++ /trunk/src/main/java/ca/sqlpower/architect/ddl/GenericDDLGenerator.java Mon May 10 13:28:45 2010
@@ -773,9 +773,10 @@
         StringBuffer def = new StringBuffer();
         UserDefinedSQLType columnType = c.getUserDefinedSQLType();
         if (columnType.getUpstreamType() != null) {
-            columnType = columnType.getUpstreamType();
-        }
-        def.append(columnType.getPhysicalName(getPlatformName()));
+ def.append(columnType.getUpstreamType().getPhysicalName(getPlatformName()));
+        } else {
+            def.append(columnType.getPhysicalName(getPlatformName()));
+        }
if (columnType.getPrecisionType(getPlatformName()) != PropertyType.NOT_APPLICABLE) {
                        
def.append("("+columnType.getPrecision(getPlatformName()));
if (columnType.getScaleType(getPlatformName()) != PropertyType.NOT_APPLICABLE) {

Reply via email to