SchmaNotFoundException when mixing lower and uppercase letters
--------------------------------------------------------------

                 Key: GEOT-1773
                 URL: http://jira.codehaus.org/browse/GEOT-1773
             Project: GeoTools
          Issue Type: Bug
          Components: data db2
    Affects Versions: 2.4.2
            Reporter: Christian Mueller


Since DB2 converts each schemaname in uppercase letters unless the schemaname 
is double quoted, using a lowercase schemaname results in a 
SchemaNotFoundException. A simple fix is not possible, I tried

1)
overwrite getDatabaseSchemaName

        public String getDatabaseSchemaName() {
                String n = config.getDatabaseSchemaName().trim();
                if (n.startsWith("\"")==false) return n.toUpperCase();
                return config.getDatabaseSchemaName();
        }

This method is not consistently used, there are many places where 
config.getDatabaseSchemaName() is used;

2)  Converting the schema name in the DB2DataStore constructor is not possible 
since the config instance var is final. (And it would be nasty)

I found no place where to do the conversion, at the Moment the workaround is to 
do the conversion berfore instantiating the DB2DataStore.





-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to