jdbc-ng is not guaranteed to work with the JDBC 4.0 Specification
-----------------------------------------------------------------

                 Key: GEOT-2216
                 URL: http://jira.codehaus.org/browse/GEOT-2216
             Project: GeoTools
          Issue Type: Bug
          Components: data jdbc-ng
    Affects Versions: 2.5.3, 2.6-M0
            Reporter: Christian Mueller



Comparing the the api doc for RestultSet>>next 

JDBC  3.0: http://java.sun.com/j2se/1.5.0/docs/api

and 

JDBC 4.0: http://java.sun.com/javase/6/docs/api/java/sql/ResultSet.html#next()

The differnce is that JDBC 4.0 allows a vendor to throw a SQLException for a 
result set type TYPE_FORWARD_ONLY if you use the resultset Object after next() 
had returned false. 

Im testing against DB2 V9.5 and have this situations.

For example in class JDBCDataStore in Method

   protected ReferencedEnvelope getBounds(SimpleFeatureType featureType,  
Filter filter,
        Connection cx) throws IOException;

rs.next() is called twice in any case causing the JDBCEmptyTest to fail.


Justin, Andrea is it ok to rewrite such methods when I am sure that there is no 
side effect ? I am up to date  on 2.5.x and 2.6 for running the tests.


-- 
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

        

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to