You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by jm...@apache.org on 2002/02/23 06:48:31 UTC

cvs commit: jakarta-turbine-torque/src/templates/sql/base/postgresql columns.vm

jmcnally    02/02/22 21:48:31

  Modified:    src/templates/sql/base/postgresql columns.vm
  Log:
  postgresql does not allow size specification on integer columns
  
  Revision  Changes    Path
  1.2       +5 -1      jakarta-turbine-torque/src/templates/sql/base/postgresql/columns.vm
  
  Index: columns.vm
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-torque/src/templates/sql/base/postgresql/columns.vm,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- columns.vm	2 Aug 2001 05:08:40 -0000	1.1
  +++ columns.vm	23 Feb 2002 05:48:31 -0000	1.2
  @@ -4,7 +4,11 @@
       #else
          #set ( $type = $dbprops.get($col.Type) )
       #end
  -    #set ( $size = $col.printSize() )
  +    #if ($col.TorqueType.indexOf("INT") == -1)
  +        #set ( $size = $col.printSize() )
  +    #else
  +        #set ( $size = "" )
  +    #end
       #set ( $default = $col.DefaultSetting )
       #set ( $nullString = $strings.select($col.isNotNull(), $dbprops.get("NOTNULL"),"") )
       #set ( $entry = "$col.Name $type $size $default $nullString" )
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>