Patches item #495746, was opened at 2001-12-20 21:22
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=376687&aid=495746&group_id=22866

Category: JBossServer
Group: v2.4 BETA (stable)
Status: Open
Resolution: None
Priority: 5
Submitted By: Larry Sanderson (lsanders)
Assigned to: Nobody/Anonymous (nobody)
Summary: Pooled Statements getResultSet bug

Initial Comment:
The StatementInPool class (2.4.4 package: 
org.jboss.pool.jdbc, 3.0.0 package: 
org.jboss.resource.adapter.jdbc.local) has a problem 
with the getResultSet() method:  when the wrapped 
Statement returns null, the wrapper should also return 
null; currently it returns a non-null instance of 
ResultSetInPool.  

Here is the patch for the 2.4.4 file:

=======================================================
============
RCS 
file: /cvsroot/jboss/jbosspool/src/main/org/jboss/pool/
jdbc/Attic/StatementInPool.java,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 StatementInPool.java
--- org/jboss/pool/jdbc/StatementInPool.java    
2001/05/15 07:58:24     1.1.1.1
+++ org/jboss/pool/jdbc/StatementInPool.java    
2001/12/21 05:08:50
@@ -224,7 +224,8 @@
     public ResultSet getResultSet() throws 
SQLException {
         if(impl == null) throw new SQLException
(CLOSED);
         try {
-            return new ResultSetInPool
(impl.getResultSet(), this);
+            ResultSet rs = impl.getResultSet();
+            return rs == null ? null : new 
ResultSetInPool(rs, this);
         } catch(SQLException e) {
             setError(e);
             throw e;

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=376687&aid=495746&group_id=22866

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to