db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r1437758 - /db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/platform/PlatformOracleImpl.java
Date Wed, 23 Jan 2013 21:47:24 GMT
Author: tfischer
Date: Wed Jan 23 21:47:23 2013
New Revision: 1437758

URL: http://svn.apache.org/viewvc?rev=1437758&view=rev
Log:
TORQUE-259 Map BINARY and LONGVARBINARY to BLOB instead of LONG RAW 

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

Modified: db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/platform/PlatformOracleImpl.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/platform/PlatformOracleImpl.java?rev=1437758&r1=1437757&r2=1437758&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/platform/PlatformOracleImpl.java
(original)
+++ db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/platform/PlatformOracleImpl.java
Wed Jan 23 21:47:23 2013
@@ -99,13 +99,13 @@ public class PlatformOracleImpl extends 
                 new SqlType("DATE"));
         setSchemaTypeToSqlTypeMapping(
                 SchemaType.BINARY,
-                new SqlType("LONG RAW"));
+                new SqlType("BLOB "));
         setSchemaTypeToSqlTypeMapping(
                 SchemaType.VARBINARY,
                 new SqlType("BLOB"));
         setSchemaTypeToSqlTypeMapping(
                 SchemaType.LONGVARBINARY,
-                new SqlType("LONG RAW"));
+                new SqlType("BLOB "));
     }
 
     /**
@@ -176,4 +176,13 @@ public class PlatformOracleImpl extends 
         dateFormat.setTimeZone(TimeZone.getTimeZone("GMT"));
         return dateFormat.format(date);
     }
+
+    /**
+     * @see Platform#hasSize(String)
+     */
+    @Override
+    public boolean hasSize(String sqlType)
+    {
+        return !("BLOB".equals(sqlType) || "CLOB".equals(sqlType));
+    }
 }



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