db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject cvs commit: db-torque/src/generator/src/templates/sql/base/mysql table.vm
Date Tue, 02 Dec 2003 02:41:23 GMT
dlr         2003/12/01 18:41:23

  Modified:    src/generator/src/templates/sql/base/mysql table.vm
  Log:
  * src/generator/src/templates/sql/base/mysql/table.vm
    Replaced double quotes around string literals with single quotes to
    avoid unnecessary interpolation by Velocity.  No other change.
  
  Revision  Changes    Path
  1.2       +6 -6      db-torque/src/generator/src/templates/sql/base/mysql/table.vm
  
  Index: table.vm
  ===================================================================
  RCS file: /home/cvs/db-torque/src/generator/src/templates/sql/base/mysql/table.vm,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -u -r1.1 -r1.2
  --- table.vm	10 Feb 2003 13:18:49 -0000	1.1
  +++ table.vm	2 Dec 2003 02:41:23 -0000	1.2
  @@ -5,15 +5,15 @@
   $generator.parse("$basepath/drop.vm", "", "table", $tbl)
   CREATE TABLE $table.Name
   (
  -#set ( $cols = $generator.parse("$basepath/columns.vm", "", "table", $tbl) )
  -#set ( $pk = $generator.parse("$basepath/primarykey.vm", "", "table", $tbl) )
  -#set ( $fk = $generator.parse("$basepath/foreignkey.vm", "", "table", $tbl) )
  -#set ( $unique = $generator.parse("$basepath/unique.vm", "", "table", $tbl) )
  -#set ( $index = $generator.parse("$basepath/index.vm", "", "table", $tbl) )
  +#set ( $cols = $generator.parse("$basepath/columns.vm", '', "table", $tbl) )
  +#set ( $pk = $generator.parse("$basepath/primarykey.vm", '', "table", $tbl) )
  +#set ( $fk = $generator.parse("$basepath/foreignkey.vm", '', "table", $tbl) )
  +#set ( $unique = $generator.parse("$basepath/unique.vm", '', "table", $tbl) )
  +#set ( $index = $generator.parse("$basepath/index.vm", '', "table", $tbl) )
   #if($strings.allEmpty([$pk,$fk,$unique,$index]))$strings.chop($cols,2)#else$cols#end
   #if($strings.allEmpty([$fk,$unique,$index]) && $pk.length()>0)$strings.chop($pk,2)#else$pk#end
   #if($strings.allEmpty([$unique,$index]) && $fk.length() >0)$strings.chop($fk,2)#else$fk#end
   #if($strings.allEmpty([$index]) && $unique.length()>0)$strings.chop($unique,2)#else$unique#end
   #if($index.length() > 0)$strings.chop($index,2)#end
   
  -)#if($dbprops.get("tableType")) Type=$dbprops.get("tableType")#end;
  +)#if($dbprops.get('tableType')) Type=$dbprops.get('tableType')#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