db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r409955 - in /db/torque: generator/trunk/src/java/org/apache/torque/engine/platform/PlatformMssqlImpl.java site/trunk/xdocs/changes.xml
Date Sun, 28 May 2006 13:53:04 GMT
Author: tfischer
Date: Sun May 28 06:53:01 2006
New Revision: 409955

URL: http://svn.apache.org/viewvc?rev=409955&view=rev
Log:
Added mapping for CLOB and BLOB types for mssql.
Fixes TORQUE-19.
Thanks to Greg Monroe for the patch.

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

Modified: db/torque/generator/trunk/src/java/org/apache/torque/engine/platform/PlatformMssqlImpl.java
URL: http://svn.apache.org/viewvc/db/torque/generator/trunk/src/java/org/apache/torque/engine/platform/PlatformMssqlImpl.java?rev=409955&r1=409954&r2=409955&view=diff
==============================================================================
--- db/torque/generator/trunk/src/java/org/apache/torque/engine/platform/PlatformMssqlImpl.java
(original)
+++ db/torque/generator/trunk/src/java/org/apache/torque/engine/platform/PlatformMssqlImpl.java
Sun May 28 06:53:01 2006
@@ -23,6 +23,7 @@
  * MS SQL Platform implementation.
  *
  * @author <a href="mailto:mpoeschl@marmot.at">Martin Poeschl</a>
+ * @author <a href="mailto:greg.monroe@dukece.com">Greg Monroe</a>
  * @version $Id$
  */
 public class PlatformMssqlImpl extends PlatformDefaultImpl
@@ -51,6 +52,8 @@
         setSchemaDomainMapping(new Domain(SchemaType.BINARY, "BINARY(7132)"));
         setSchemaDomainMapping(new Domain(SchemaType.VARBINARY, "IMAGE"));
         setSchemaDomainMapping(new Domain(SchemaType.LONGVARBINARY, "IMAGE"));
+        setSchemaDomainMapping(new Domain(SchemaType.BLOB, "IMAGE"));
+        setSchemaDomainMapping(new Domain(SchemaType.CLOB, "TEXT"));
     }
 
     /**

Modified: db/torque/site/trunk/xdocs/changes.xml
URL: http://svn.apache.org/viewvc/db/torque/site/trunk/xdocs/changes.xml?rev=409955&r1=409954&r2=409955&view=diff
==============================================================================
--- db/torque/site/trunk/xdocs/changes.xml (original)
+++ db/torque/site/trunk/xdocs/changes.xml Sun May 28 06:53:01 2006
@@ -29,6 +29,19 @@
 
   <release version="3.2.1-dev" date="in SVN">
   
+    <action type="fix" dev="tfischer" issue="TORQUE-19" due-to="Greg Monroe">
+      Corrected datatype Mapping for MS-SQL:
+      <ul>
+        <li>
+          Torque type BLOB is now mapped to MS-SQL type IMAGE 
+          (was BLOB in Torque 3.2, not working)
+        </li>
+        <li>
+          Torque type CLOB is now mapped to MS-SQL type TEXT
+          (was CLOB in Torque 3.2, not working)
+        </li>
+      </ul>
+    </action>
     <action type="fix" dev="tfischer" issue="TORQUE-21" due-to="Nicolas Le Griel">
       Fixed bug in bean generation when a table has several references 
       to another table.
@@ -45,7 +58,7 @@
       </ul>
     </action>
     <action type="fix" dev="tfischer" issue="TORQUE-4" due-to="Joerg Friedrich">
-      Corrected Mappings for firebird:
+      Corrected datatype Mappings for firebird:
       <ul>
         <li>
           Torque type char is now mapped to firebird type char (was varchar)



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