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 Fri, 01 Aug 2003 08:25:22 GMT
mpoeschl    2003/08/01 01:25:22

  Modified:    src/generator/src/templates/sql/base/mysql columns.vm
  Log:
  the handling of the idMethod is done by the model, so we don't have to check it in the template
too
  
  Revision  Changes    Path
  1.2       +1 -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.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- columns.vm	10 Feb 2003 13:18:49 -0000	1.1
  +++ columns.vm	1 Aug 2003 08:25:22 -0000	1.2
  @@ -4,7 +4,7 @@
       #set ( $default = $col.DefaultSetting )
       #set ( $nullString = $strings.select($col.isNotNull(), $dbprops.get("NOTNULL"),"")
)
       #set ( $autoIncrement = $strings.select($col.isAutoIncrement(), $dbprops.get("AUTOINCREMENT"),"")
)
  -    #if ((($database.getDefaultIdMethod() == "native") && ($table.getIdMethod()
== "")) || ($table.getIdMethod() == "native"))
  +    #if ($table.getIdMethod() == "native")
           #if ($col.isPrimaryKey() && ($col.Type == "INTEGER"))
               #set ( $autoIncrement = $dbprops.get("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