JDBCDataStore>>getNextValue does not take care of db schema
-----------------------------------------------------------

                 Key: GEOT-1991
                 URL: http://jira.codehaus.org/browse/GEOT-1991
             Project: GeoTools
          Issue Type: Bug
    Affects Versions: 2.6-M0
            Reporter: Christian Mueller


JDBCDataStore>>getNextValue   creates an sql statement 

"select max(columname) from tableName"

This statements fails if  table is not in the current schema. 

Solution:

use the 
    public Object getNextPrimaryKeyValue(String schemaName, String tableName, 
String columnName,
        Connection cx) throws SQLException {


Method from the Dialect class. 




-- 
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 Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to