db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r1438178 - /db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/platform/PlatformPostgresqlImpl.java
Date Thu, 24 Jan 2013 20:47:20 GMT
Author: tfischer
Date: Thu Jan 24 20:47:20 2013
New Revision: 1438178

URL: http://svn.apache.org/viewvc?rev=1438178&view=rev
Log:
BYTEA cannot have a size in Postgresql

Modified:
    db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/platform/PlatformPostgresqlImpl.java

Modified: db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/platform/PlatformPostgresqlImpl.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/platform/PlatformPostgresqlImpl.java?rev=1438178&r1=1438177&r2=1438178&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/platform/PlatformPostgresqlImpl.java
(original)
+++ db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/platform/PlatformPostgresqlImpl.java
Thu Jan 24 20:47:20 2013
@@ -98,12 +98,12 @@ public class PlatformPostgresqlImpl exte
 
     /**
      * @see Platform#hasScale(String)
-     * TODO collect info for all platforms
      */
     public boolean hasScale(String sqlType)
     {
         if ("INT2".equalsIgnoreCase(sqlType)
-                || "TEXT".equalsIgnoreCase(sqlType))
+                || "TEXT".equalsIgnoreCase(sqlType)
+                || "BYTEA".equalsIgnoreCase(sqlType))
         {
             return false;
         }
@@ -112,12 +112,12 @@ public class PlatformPostgresqlImpl exte
 
     /**
      * @see Platform#hasSize(String)
-     * TODO collect info for all platforms
      */
     public boolean hasSize(String sqlType)
     {
         if ("INT2".equalsIgnoreCase(sqlType)
-                || "TEXT".equalsIgnoreCase(sqlType))
+                || "TEXT".equalsIgnoreCase(sqlType)
+                || "BYTEA".equalsIgnoreCase(sqlType))
         {
             return false;
         }



---------------------------------------------------------------------
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