db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Knut Anders Hatlen <Knut.Hat...@Sun.COM>
Subject ResultSet.getConcurrency() behaves differently on client and embedded
Date Fri, 24 Feb 2006 13:56:59 GMT
I discovered that the client driver throws SQLException if
getConcurrency() is called on a closed ResultSet, whereas embedded
does not throw exception. Which behaviour is correct? The JDBC javadoc
just says:

 Throws:
     SQLException - if a database access error occurs

I see other methods, like getWarnings(), where the javadoc explicitly
states that an exception should be thrown if the ResultSet is closed:

 Throws:
     SQLException - if a database access error occurs or this method
     is called on a closed result set

-- 
Knut Anders

Mime
View raw message