commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

r5917 - trunk/gnue-common/src/schema/scripter/processors


From: johannes
Subject: r5917 - trunk/gnue-common/src/schema/scripter/processors
Date: Wed, 7 Jul 2004 17:13:57 -0500 (CDT)

Author: johannes
Date: 2004-06-16 06:37:06 -0500 (Wed, 16 Jun 2004)
New Revision: 5917

Modified:
   trunk/gnue-common/src/schema/scripter/processors/HTML.py
   trunk/gnue-common/src/schema/scripter/processors/interbase.py
   trunk/gnue-common/src/schema/scripter/processors/mssql.py
   trunk/gnue-common/src/schema/scripter/processors/oracle.py
   trunk/gnue-common/src/schema/scripter/processors/postgresql.py
Log:
Translate number types using the proper length and scale


Modified: trunk/gnue-common/src/schema/scripter/processors/HTML.py
===================================================================
--- trunk/gnue-common/src/schema/scripter/processors/HTML.py    2004-06-16 
07:07:55 UTC (rev 5916)
+++ trunk/gnue-common/src/schema/scripter/processors/HTML.py    2004-06-16 
11:37:06 UTC (rev 5917)
@@ -373,5 +373,4 @@
   # ---------------------------------------------------------------------------
 
   def number (self, gsField):
-    return "number (%s, %s)" % (gsField.length + gsField.precision, \
-                                gsField.precision)
+    return "number (%s, %s)" % (gsField.length, gsField.precision)

Modified: trunk/gnue-common/src/schema/scripter/processors/interbase.py
===================================================================
--- trunk/gnue-common/src/schema/scripter/processors/interbase.py       
2004-06-16 07:07:55 UTC (rev 5916)
+++ trunk/gnue-common/src/schema/scripter/processors/interbase.py       
2004-06-16 11:37:06 UTC (rev 5917)
@@ -148,8 +148,7 @@
         return "numeric (%s,0)" % gsField.length
 
     else:
-      return "numeric (%s,%s)" % (gsField.length + gsField.precision, 
-                                  gsField.precision)
+      return "numeric (%s,%s)" % (gsField.length, gsField.precision)
 
 
   # ---------------------------------------------------------------------------

Modified: trunk/gnue-common/src/schema/scripter/processors/mssql.py
===================================================================
--- trunk/gnue-common/src/schema/scripter/processors/mssql.py   2004-06-16 
07:07:55 UTC (rev 5916)
+++ trunk/gnue-common/src/schema/scripter/processors/mssql.py   2004-06-16 
11:37:06 UTC (rev 5917)
@@ -97,8 +97,7 @@
       else:
         return "decimal (%s,0)" % gsField.length
     else:
-      return "decimal (%s,%s)" % (gsField.length + gsField.precision,
-                                  gsField.precision)
+      return "decimal (%s,%s)" % (gsField.length, gsField.precision)
 
 
   # ---------------------------------------------------------------------------

Modified: trunk/gnue-common/src/schema/scripter/processors/oracle.py
===================================================================
--- trunk/gnue-common/src/schema/scripter/processors/oracle.py  2004-06-16 
07:07:55 UTC (rev 5916)
+++ trunk/gnue-common/src/schema/scripter/processors/oracle.py  2004-06-16 
11:37:06 UTC (rev 5917)
@@ -180,6 +180,5 @@
     if gsField.precision == 0:
       return "number (%s)" % gsField.length
     else:
-      return "number (%s,%s)" % (gsField.length + gsField.precision, 
-                                 gsField.precision)
+      return "number (%s,%s)" % (gsField.length, gsField.precision)
 

Modified: trunk/gnue-common/src/schema/scripter/processors/postgresql.py
===================================================================
--- trunk/gnue-common/src/schema/scripter/processors/postgresql.py      
2004-06-16 07:07:55 UTC (rev 5916)
+++ trunk/gnue-common/src/schema/scripter/processors/postgresql.py      
2004-06-16 11:37:06 UTC (rev 5917)
@@ -120,8 +120,7 @@
       else:
         return "numeric (%s,0)" % gsField.length
     else:
-      return "numeric (%s,%s)" % (gsField.length + gsField.precision,
-                                  gsField.precision)
+      return "numeric (%s,%s)" % (gsField.length, gsField.precision)
 
   # ---------------------------------------------------------------------------
   # Keep boolean as 'boolean'





reply via email to

[Prev in Thread] Current Thread [Next in Thread]