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/java/org/apache/torque/engine/database/model Database.java
Date Tue, 27 May 2003 18:06:45 GMT
mpoeschl    2003/05/27 11:06:45

  Modified:    src/java/org/apache/torque/engine/database/model Tag:
                        TORQUE_3_0_BRANCH Database.java
  Log:
  TRQS104: Use of null object
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.17.2.1  +3 -5      db-torque/src/java/org/apache/torque/engine/database/model/Attic/Database.java
  
  Index: Database.java
  ===================================================================
  RCS file: /home/cvs/db-torque/src/java/org/apache/torque/engine/database/model/Attic/Database.java,v
  retrieving revision 1.17
  retrieving revision 1.17.2.1
  diff -u -r1.17 -r1.17.2.1
  --- Database.java	29 Nov 2002 13:50:29 -0000	1.17
  +++ Database.java	27 May 2003 18:06:45 -0000	1.17.2.1
  @@ -81,7 +81,6 @@
   {
       private String databaseType = null;
       private List tableList = new ArrayList(100);
  -    private Column curColumn;
       private String name;
       private String pkg;
       private String baseClass;
  @@ -435,15 +434,14 @@
                   while (localColumnNames.hasNext())
                   {
                       Column local = currTable
  -                        .getColumn((String)localColumnNames.next());
  +                        .getColumn((String) localColumnNames.next());
                       // give notice of a schema inconsistency.
                       // note we do not prevent the npe as there is nothing
                       // that we can do, if it is to occur.
                       if (local == null)
                       {
                           System.out.println("ERROR!! Attempt to define foreign"
  -                                + " key with nonexistent column, "
  -                                + local.getName() + ", in table, "
  +                                + " key with nonexistent column in table, "
                                   + currTable.getName() + "!");
                       }
                       //check for foreign pk's
  
  
  

Mime
View raw message