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 Tue, 20 Jan 2004 23:19:47 GMT
mpoeschl    2004/01/20 15:19:47

  Modified:    src/generator/src/templates/sql/base/mysql columns.vm
  Log:
  use Column.getSqlString()
  
  Revision  Changes    Path
  1.8       +1 -8      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.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- columns.vm	17 Jan 2004 01:53:28 -0000	1.7
  +++ columns.vm	20 Jan 2004 23:19:47 -0000	1.8
  @@ -1,11 +1,4 @@
   #foreach ($col in $table.Columns)
  -    #set ( $type = $col.Domain.SqlType )
  -	#if ( $type == 'MEDIUMTEXT' || $type == 'LONGTEXT' || $type == 'BLOB' || $type == 'MEDIUMBLOB'
|| $type == 'LONGBLOB' )
  -		#set ( $size = '' )
  -	#else
  -		#set ( $size = $col.printSize() )
  -	#end
  -    #set ( $default = $col.DefaultSetting )
  -    #set ( $entry = "$col.Name $type $size $default $col.NotNullString $col.AutoIncrementString,"
)
  +    #set ( $entry = "$col.SqlString," )
       $strings.sub($strings.collapseSpaces($entry)," ,",",")
   #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