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/cloudscape primarykey.vm
Date Fri, 30 May 2003 15:18:34 GMT
mpoeschl    2003/05/30 08:18:31

  Modified:    src/generator/src/templates/sql/base/db2 primarykey.vm
               src/generator/src/templates/sql/base/sapdb primarykey.vm
               src/generator/src/templates/sql/base/db2400 primarykey.vm
               src/generator/src/templates/sql/base/interbase primarykey.vm
               xdocs    changes.xml
               src/generator/src/templates/sql/base/cloudscape
                        primarykey.vm
  Log:
  TRQS141: Table with no primary key results an empty ADD PRIMARY KEY ()
  
  Revision  Changes    Path
  1.2       +2 -0      db-torque/src/generator/src/templates/sql/base/db2/primarykey.vm
  
  Index: primarykey.vm
  ===================================================================
  RCS file: /home/cvs/db-torque/src/generator/src/templates/sql/base/db2/primarykey.vm,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- primarykey.vm	10 Feb 2003 13:18:45 -0000	1.1
  +++ primarykey.vm	30 May 2003 15:18:31 -0000	1.2
  @@ -1,2 +1,4 @@
  +#if ($table.hasPrimaryKey())
   ALTER TABLE $table.Name
       ADD PRIMARY KEY ($table.printPrimaryKey());
  +#end
  \ No newline at end of file
  
  
  
  1.2       +2 -0      db-torque/src/generator/src/templates/sql/base/sapdb/primarykey.vm
  
  Index: primarykey.vm
  ===================================================================
  RCS file: /home/cvs/db-torque/src/generator/src/templates/sql/base/sapdb/primarykey.vm,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- primarykey.vm	10 Feb 2003 13:18:44 -0000	1.1
  +++ primarykey.vm	30 May 2003 15:18:31 -0000	1.2
  @@ -1,2 +1,4 @@
  +#if ($table.hasPrimaryKey())
   ALTER TABLE $table.Name
       ADD PRIMARY KEY ($table.printPrimaryKey()) ;
  +#end
  \ No newline at end of file
  
  
  
  1.2       +2 -1      db-torque/src/generator/src/templates/sql/base/db2400/primarykey.vm
  
  Index: primarykey.vm
  ===================================================================
  RCS file: /home/cvs/db-torque/src/generator/src/templates/sql/base/db2400/primarykey.vm,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- primarykey.vm	10 Feb 2003 13:18:47 -0000	1.1
  +++ primarykey.vm	30 May 2003 15:18:31 -0000	1.2
  @@ -1,4 +1,5 @@
  +#if ($table.hasPrimaryKey())
   ALTER TABLE $table.Name
       ADD CONSTRAINT ${table.Name}_PK 
   PRIMARY KEY ($table.printPrimaryKey());
  -
  +#end
  
  
  
  1.2       +2 -0      db-torque/src/generator/src/templates/sql/base/interbase/primarykey.vm
  
  Index: primarykey.vm
  ===================================================================
  RCS file: /home/cvs/db-torque/src/generator/src/templates/sql/base/interbase/primarykey.vm,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- primarykey.vm	10 Feb 2003 13:18:44 -0000	1.1
  +++ primarykey.vm	30 May 2003 15:18:31 -0000	1.2
  @@ -1 +1,3 @@
  +#if ($table.hasPrimaryKey())
       PRIMARY KEY($table.printPrimaryKey()),
  +#end
  \ No newline at end of file
  
  
  
  1.80      +3 -0      db-torque/xdocs/changes.xml
  
  Index: changes.xml
  ===================================================================
  RCS file: /home/cvs/db-torque/xdocs/changes.xml,v
  retrieving revision 1.79
  retrieving revision 1.80
  diff -u -r1.79 -r1.80
  --- changes.xml	14 May 2003 20:32:20 -0000	1.79
  +++ changes.xml	30 May 2003 15:18:31 -0000	1.80
  @@ -42,6 +42,9 @@
       <li>
         TRQS139: wrong invocation of populateObject in peer class
       </li>  
  +    <li>
  +      TRQS141: Table with no primary key results an empty ADD PRIMARY KEY ()
  +    </li>  
     </ul>
   </p>
   </subsection>
  
  
  
  1.2       +3 -1      db-torque/src/generator/src/templates/sql/base/cloudscape/primarykey.vm
  
  Index: primarykey.vm
  ===================================================================
  RCS file: /home/cvs/db-torque/src/generator/src/templates/sql/base/cloudscape/primarykey.vm,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- primarykey.vm	10 Feb 2003 13:18:45 -0000	1.1
  +++ primarykey.vm	30 May 2003 15:18:31 -0000	1.2
  @@ -1 +1,3 @@
  -    PRIMARY KEY($table.printPrimaryKey()),
  +#if ($table.hasPrimaryKey())
  +    PRIMARY KEY($table.printPrimaryKey()),
  +#end
  \ No newline at end of file
  
  
  

Mime
View raw message