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/generator/src/templates/sql/base/mysql columns.vm
Date Mon, 04 Aug 2003 23:25:39 GMT
mpoeschl    2003/08/04 16:25:39

  Modified:    xdocs    changes.xml
               src/generator/src/templates/sql/base/mysql columns.vm
  Log:
  TRQS136: MySQL will not accept a size definition for TEXT and BLOB fields
  
  Revision  Changes    Path
  1.98      +3 -0      db-torque/xdocs/changes.xml
  
  Index: changes.xml
  ===================================================================
  RCS file: /home/cvs/db-torque/xdocs/changes.xml,v
  retrieving revision 1.97
  retrieving revision 1.98
  diff -u -r1.97 -r1.98
  --- changes.xml	4 Aug 2003 23:20:27 -0000	1.97
  +++ changes.xml	4 Aug 2003 23:25:39 -0000	1.98
  @@ -37,6 +37,9 @@
         TRQS51: Datadump does not recognize null columns properly
       </li>
       <li>
  +      TRQS136: MySQL will not accept a size definition for TEXT and BLOB fields
  +    </li>
  +    <li>
         TRQS152: Oracle DB using Criteria to select by Data doesn't work
       </li>
       <li>
  
  
  
  1.3       +5 -1      db-torque/src/generator/src/templates/sql/base/mysql/columns.vm
  
  Index: columns.vm
  ===================================================================
  RCS file: /home/cvs/db-torque/src/generator/src/templates/sql/base/mysql/columns.vm,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- columns.vm	1 Aug 2003 08:25:22 -0000	1.2
  +++ columns.vm	4 Aug 2003 23:25:39 -0000	1.3
  @@ -1,6 +1,10 @@
   #foreach ($col in $table.Columns)
       #set ( $type = $dbprops.get($col.Type) )
  -    #set ( $size = $col.printSize() )
  +	#if ( $type == 'MEDIUMTEXT' || $type == 'LONGTEXT' || $type == 'BLOB' || $type == 'MEDIUMBLOB'
|| $type == 'LONGBLOB' )
  +		#set ( $size = '' )
  +	#else
  +		#set ( $size = $col.printSize() )
  +	#end
       #set ( $default = $col.DefaultSetting )
       #set ( $nullString = $strings.select($col.isNotNull(), $dbprops.get("NOTNULL"),"")
)
       #set ( $autoIncrement = $strings.select($col.isAutoIncrement(), $dbprops.get("AUTOINCREMENT"),"")
)
  
  
  

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