db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mpoes...@apache.org
Subject cvs commit: db-torque/src/templates/sql/base/db2 columns.vm
Date Mon, 04 Aug 2003 23:19:48 GMT
mpoeschl    2003/08/04 16:19:48

  Modified:    xdocs    Tag: TORQUE_3_0_BRANCH changes.xml
               src/templates/sql/base/db2 Tag: TORQUE_3_0_BRANCH columns.vm
  Log:
  TRQS174: Problems on DB2 with BINARY, VARBINARY and INTEGER.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.54.2.19 +3 -0      db-torque/xdocs/changes.xml
  
  Index: changes.xml
  ===================================================================
  RCS file: /home/cvs/db-torque/xdocs/changes.xml,v
  retrieving revision 1.54.2.18
  retrieving revision 1.54.2.19
  diff -u -r1.54.2.18 -r1.54.2.19
  --- changes.xml	1 Jul 2003 04:21:15 -0000	1.54.2.18
  +++ changes.xml	4 Aug 2003 23:19:48 -0000	1.54.2.19
  @@ -21,6 +21,9 @@
       <li>
         TRQS132: Database.java using null object
       </li>
  +    <li>
  +      TRQS174: Problems on DB2 with BINARY, VARBINARY and INTEGER.
  +    </li>
     </ul>
   </p>
   </subsection>
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.2.2.1   +5 -2      db-torque/src/templates/sql/base/db2/Attic/columns.vm
  
  Index: columns.vm
  ===================================================================
  RCS file: /home/cvs/db-torque/src/templates/sql/base/db2/Attic/columns.vm,v
  retrieving revision 1.2
  retrieving revision 1.2.2.1
  diff -u -r1.2 -r1.2.2.1
  --- columns.vm	26 Sep 2002 14:28:35 -0000	1.2
  +++ columns.vm	4 Aug 2003 23:19:48 -0000	1.2.2.1
  @@ -1,15 +1,18 @@
   #foreach ($col in $table.Columns)
       #set ( $type = $dbprops.get($col.Type) )
       #set ( $size = $col.printSize() )
  +    #if ( $type == "INTEGER" )
  +        #set ( $size = "" )
  +    #end
       #set ( $rawsize = $col.Size )
       #set ( $torquetype = $col.TorqueType )
       #set ( $default = $col.DefaultSetting )
       #set ( $autoIncrement = $strings.select($col.isAutoIncrement(), $dbprops.get("AUTOINCREMENT"),"")
)
       #set ( $nullString = $strings.select($col.isNotNull(), $dbprops.get("NOTNULL"),"")
)
       #if ( $torquetype == "BINARY" )
  -        #set ( $entry = "$col.Name CHAR($rawsize) FOR BIT DATA $type $size $default $nullString
$autoIncrement," )
  +        #set ( $entry = "$col.Name CHAR($rawsize) FOR BIT DATA $default $nullString $autoIncrement,"
)
       #elseif ( $torquetype == "VARBINARY" )
  -        #set ( $entry = "$col.Name VARCHAR($rawsize) FOR BIT DATA $type $size $default
$nullString $autoIncrement," )
  +        #set ( $entry = "$col.Name VARCHAR($rawsize) FOR BIT DATA $default $nullString
$autoIncrement," )
       #else
           #set ( $entry = "$col.Name $type $size $default $nullString $autoIncrement," )
       #end
  
  
  

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