db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From florianbruck...@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/tools/mapping/reversedb DBSchema.java
Date Sun, 29 Jun 2003 14:28:07 GMT
florianbruckner    2003/06/29 07:28:07

  Modified:    src/java/org/apache/ojb/tools/mapping/reversedb
                        DBSchema.java
  Log:
  fix a bug that could cause problems with all databases that use mixed or lower case catalog
names (e.g. Informix, MySQL)
  
  Revision  Changes    Path
  1.8       +5 -2      db-ojb/src/java/org/apache/ojb/tools/mapping/reversedb/DBSchema.java
  
  Index: DBSchema.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/tools/mapping/reversedb/DBSchema.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- DBSchema.java	21 Jun 2003 10:34:01 -0000	1.7
  +++ DBSchema.java	29 Jun 2003 14:28:07 -0000	1.8
  @@ -124,7 +124,7 @@
         // Pointbase returns the catalog name in uppercase here and in mixed
         // case in getCatalogs(). Therefore we have to use toUpper().
         if (   
  -             (strTableCat == null && this.getDBCatalog().getCatalogName() == null
|| strTableCat.equals(this.getDBCatalog().getCatalogName().toUpperCase()))
  +             (strTableCat == null && this.getDBCatalog().getCatalogName() == null
|| strTableCat.equalsIgnoreCase(this.getDBCatalog().getCatalogName()))
              &&(strSchemaName == null && this.getSchemaName() == null ||
strSchemaName.equals(this.getSchemaName()))
            )
           this.addTable(strTableName, strTableType);
  @@ -280,6 +280,9 @@
   
   /***************************** Changelog *****************************
   // $Log$
  +// Revision 1.8  2003/06/29 14:28:07  florianbruckner
  +// fix a bug that could cause problems with all databases that use mixed or lower case
catalog names (e.g. Informix, MySQL)
  +//
   // Revision 1.7  2003/06/21 10:34:01  florianbruckner
   // implement XML generation with PrintWriter; getXML() still works and uses writeXML(java.io.PrintWriter)
   //
  
  
  

Mime
View raw message