db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r491219 - in /db/torque: generator/trunk/src/java/org/apache/torque/engine/platform/PlatformPostgresqlImpl.java site/trunk/xdocs/changes.xml
Date Sat, 30 Dec 2006 12:39:21 GMT
Author: tfischer
Date: Sat Dec 30 04:39:20 2006
New Revision: 491219

URL: http://svn.apache.org/viewvc?view=rev&rev=491219
Log:
the TEXT sql type has no size and scale in postgresql; added that information to the platform
info in the generator

Modified:
    db/torque/generator/trunk/src/java/org/apache/torque/engine/platform/PlatformPostgresqlImpl.java
    db/torque/site/trunk/xdocs/changes.xml

Modified: db/torque/generator/trunk/src/java/org/apache/torque/engine/platform/PlatformPostgresqlImpl.java
URL: http://svn.apache.org/viewvc/db/torque/generator/trunk/src/java/org/apache/torque/engine/platform/PlatformPostgresqlImpl.java?view=diff&rev=491219&r1=491218&r2=491219
==============================================================================
--- db/torque/generator/trunk/src/java/org/apache/torque/engine/platform/PlatformPostgresqlImpl.java
(original)
+++ db/torque/generator/trunk/src/java/org/apache/torque/engine/platform/PlatformPostgresqlImpl.java
Sat Dec 30 04:39:20 2006
@@ -82,7 +82,8 @@
      */
     public boolean hasScale(String sqlType)
     {
-        if ("INT2".equalsIgnoreCase(sqlType))
+        if ("INT2".equalsIgnoreCase(sqlType)
+                || "TEXT".equalsIgnoreCase(sqlType))
         {
             return false;
         }
@@ -95,7 +96,8 @@
      */
     public boolean hasSize(String sqlType)
     {
-         if ("INT2".equalsIgnoreCase(sqlType))
+        if ("INT2".equalsIgnoreCase(sqlType)
+                || "TEXT".equalsIgnoreCase(sqlType))
         {
             return false;
         }

Modified: db/torque/site/trunk/xdocs/changes.xml
URL: http://svn.apache.org/viewvc/db/torque/site/trunk/xdocs/changes.xml?view=diff&rev=491219&r1=491218&r2=491219
==============================================================================
--- db/torque/site/trunk/xdocs/changes.xml (original)
+++ db/torque/site/trunk/xdocs/changes.xml Sat Dec 30 04:39:20 2006
@@ -33,6 +33,10 @@
 
   <release version="3.3" date="in SVN">
     <action type="fix" dev="tfischer">
+      Aded the TEXT sql type in postgresql to the list of types
+      where size and scale is silently dropped in sql generation.
+    </action>
+    <action type="fix" dev="tfischer">
       Made the password parameter optional in the sqlexec task in the maven2
       plugin. Empty passwords work for some databases.
     </action>



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message