db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jakob Braeuchi <jbraeu...@gmx.ch>
Subject Re: PATCH from users list Re: reverse-db issue:
Date Sat, 13 Sep 2003 16:59:27 GMT
hi jason,

thanks for the patch, it's in the repository now.

jakob

Jason Pyeron wrote:

>Index: src/java/org/apache/ojb/tools/mapping/reversedb/DBSchema.java
>===================================================================
>RCS file: /home/cvspublic/db-ojb/src/java/org/apache/ojb/tools/mapping/reversedb/DBSchema.java,v
>retrieving revision 1.8
>diff -u -B -r1.8 DBSchema.java
>--- src/java/org/apache/ojb/tools/mapping/reversedb/DBSchema.java	29 Jun 2003 14:28:07
-0000	1.8
>+++ src/java/org/apache/ojb/tools/mapping/reversedb/DBSchema.java	13 Sep 2003 16:21:25
-0000
>@@ -124,8 +124,9 @@
>       // 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.equalsIgnoreCase(this.getDBCatalog().getCatalogName()))
>-           &&(strSchemaName == null && this.getSchemaName() == null ||
strSchemaName.equals(this.getSchemaName()))
>+          (strTableCat!=null && strTableCat.equalsIgnoreCase(this.getDBCatalog().getCatalogName())
|| strTableCat==this.getDBCatalog().getCatalogName())
>+          &&
>+          (strSchemaName!=null && strSchemaName.equals(this.getSchemaName())
|| strSchemaName==this.getSchemaName())
>          )
>         this.addTable(strTableName, strTableType);
>       
>
>
>
>On Sat, 13 Sep 2003, Jason Pyeron wrote:
>
>  
>
>>any one get this before?
>>
>>this was after the read button was pushed.
>>
>>[jpyeron@MrLaptop db-ojb-1.0.rc4]$ ant reverse-db
>>Buildfile: build.xml
>>
>>reverse-db:
>>[reversedb] Using MySQL-AB JDBC Driver 3.0.8-stable ( $Date: 2003/05/19 00:57:19 $,
$Revision: 1.27.2.18 $ )
>>[reversedb] java.lang.NullPointerException
>>[reversedb]     at org.apache.ojb.tools.mapping.reversedb.DBSchema.read(DBSchema.java:126)
>>[reversedb]     at org.apache.ojb.tools.mapping.reversedb.DBCatalog.read(DBCatalog.java:164)
>>[reversedb]     at org.apache.ojb.tools.mapping.reversedb.DBMeta.read(DBMeta.java:224)
>>[reversedb]     at org.apache.ojb.tools.mapping.reversedb.gui.JFrmMainFrame.analyzeSchema(JFrmMainFrame.java:128)
>>
>>Sincerely,
>>
>>Jason Pyeron
>>
>>
>>    
>>
>
>  
>
>------------------------------------------------------------------------
>
>Index: src/java/org/apache/ojb/tools/mapping/reversedb/DBSchema.java
>===================================================================
>RCS file: /home/cvspublic/db-ojb/src/java/org/apache/ojb/tools/mapping/reversedb/DBSchema.java,v
>retrieving revision 1.8
>diff -u -B -r1.8 DBSchema.java
>--- src/java/org/apache/ojb/tools/mapping/reversedb/DBSchema.java	29 Jun 2003 14:28:07
-0000	1.8
>+++ src/java/org/apache/ojb/tools/mapping/reversedb/DBSchema.java	13 Sep 2003 16:21:25
-0000
>@@ -124,8 +124,9 @@
>       // 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.equalsIgnoreCase(this.getDBCatalog().getCatalogName()))
>-           &&(strSchemaName == null && this.getSchemaName() == null ||
strSchemaName.equals(this.getSchemaName()))
>+          (strTableCat!=null && strTableCat.equalsIgnoreCase(this.getDBCatalog().getCatalogName())
|| strTableCat==this.getDBCatalog().getCatalogName())
>+          &&
>+          (strSchemaName!=null && strSchemaName.equals(this.getSchemaName())
|| strSchemaName==this.getSchemaName())
>          )
>         this.addTable(strTableName, strTableType);
>       
>  
>
>------------------------------------------------------------------------
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
>For additional commands, e-mail: ojb-dev-help@db.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message