db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r591651 - in /db/torque: generator/trunk/src/java/org/apache/torque/engine/platform/PlatformSybaseImpl.java site/trunk/xdocs/changes.xml
Date Sat, 03 Nov 2007 16:48:24 GMT
Author: tfischer
Date: Sat Nov  3 09:48:23 2007
New Revision: 591651

URL: http://svn.apache.org/viewvc?rev=591651&view=rev
Log:
Sybase: Columns where the attribute "required"
      is not set or set to false are now created explicitly
      with suffix "NULL". 
    </action>
    <action type="change" dev="tfischer">
      Changed Type Mappings for Sybase:
      <ul>
        <li>
          Torque type TIME is now mapped to SQL type TIME
          (was: SQL type TIMESTAMP)
        </li>
        <li>
          Torque type CLOB is now mapped to SQL type TEXT
          (was: SQL type CLOB, which does not exist in Sybase)
        </li>
        <li>
          Torque type BLOB is now mapped to SQL type IMAGE
          (was: SQL type BLOB, which does not exist in Sybase)
        </li>
      </ul>
    </action>

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

Modified: db/torque/generator/trunk/src/java/org/apache/torque/engine/platform/PlatformSybaseImpl.java
URL: http://svn.apache.org/viewvc/db/torque/generator/trunk/src/java/org/apache/torque/engine/platform/PlatformSybaseImpl.java?rev=591651&r1=591650&r2=591651&view=diff
==============================================================================
--- db/torque/generator/trunk/src/java/org/apache/torque/engine/platform/PlatformSybaseImpl.java
(original)
+++ db/torque/generator/trunk/src/java/org/apache/torque/engine/platform/PlatformSybaseImpl.java
Sat Nov  3 09:48:23 2007
@@ -49,10 +49,11 @@
         setSchemaDomainMapping(new Domain(SchemaType.DOUBLE, "FLOAT"));
         setSchemaDomainMapping(new Domain(SchemaType.LONGVARCHAR, "TEXT"));
         setSchemaDomainMapping(new Domain(SchemaType.DATE, "DATETIME"));
-        setSchemaDomainMapping(new Domain(SchemaType.TIME, "TIMESTAMP"));
         setSchemaDomainMapping(new Domain(SchemaType.TIMESTAMP, "DATETIME"));
         setSchemaDomainMapping(new Domain(SchemaType.VARBINARY, "IMAGE"));
         setSchemaDomainMapping(new Domain(SchemaType.LONGVARBINARY, "IMAGE"));
+        setSchemaDomainMapping(new Domain(SchemaType.BLOB, "IMAGE"));
+        setSchemaDomainMapping(new Domain(SchemaType.CLOB, "TEXT"));
     }
 
     /**
@@ -62,5 +63,12 @@
     {
         return 30;
     }
-
+    
+    /**
+     * @see Platform#getNullString(boolean)
+     */    
+    public String getNullString(boolean notNull)
+    {
+        return (notNull ? "NOT NULL" : "NULL");
+    }
 }

Modified: db/torque/site/trunk/xdocs/changes.xml
URL: http://svn.apache.org/viewvc/db/torque/site/trunk/xdocs/changes.xml?rev=591651&r1=591650&r2=591651&view=diff
==============================================================================
--- db/torque/site/trunk/xdocs/changes.xml (original)
+++ db/torque/site/trunk/xdocs/changes.xml Sat Nov  3 09:48:23 2007
@@ -31,6 +31,28 @@
 
   <body>
   <release version="3.3-RC3" date="in SVN">
+    <action type="change" dev="tfischer" issue="TORQUE-105" due-to="Sylvain Benoist">
+      Sybase: Columns where the attribute &quot;required&quot; 
+      is not set or set to false are now created explicitly
+      with suffix &quot;NULL&quot;. 
+    </action>
+    <action type="change" dev="tfischer">
+      Changed Type Mappings for Sybase:
+      <ul>
+        <li>
+          Torque type TIME is now mapped to SQL type TIME
+          (was: SQL type TIMESTAMP)
+        </li>
+        <li>
+          Torque type CLOB is now mapped to SQL type TEXT
+          (was: SQL type CLOB, which does not exist in Sybase)
+        </li>
+        <li>
+          Torque type BLOB is now mapped to SQL type IMAGE
+          (was: SQL type BLOB, which does not exist in Sybase)
+        </li>
+      </ul>
+    </action>
     <action type="change" dev="tfischer">
       Criterions with an integer value will now be set using
       PreparedStatemet#setInt() when doing a PsSelect.



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