Bugs item #494839, was opened at 2001-12-18 16:20
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=376685&aid=494839&group_id=22866

Category: JBossCMP
Group: v2.4 (stable)
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Robert Price (rprice)
>Assigned to: Scott M Stark (starksm)
Summary: getResultSet returns erroneous info

Initial Comment:
This is on version 2.4.3 of JBoss.  
The StatementInPool object's implementation of 
getResultSet returns erroneous information.  According 
to the API of java.sql.Statement, this method 
returns "the current result as a ResultSet object or 
null if the result is an update count or there are no 
more results."  

The problem we have encountered involves the last part 
of the statement - "or there are no more results".  
The implementation of this method in StatementInPool is
this:
return new ResultSetInPool(impl.getResultSet(), this);
which means that rather than getting null passed back, 
we get a valid instance of ResultSetInPool with a null 
implementation object (because the impl.getResultSet() 
returned null according to spec).

Code that works running a pure Java environement 
breaks when running under JBoss because of this.

The problem CAN be coded around by using a combination 
of the results from the getMoreResults() and 
getUpdateCount() methods, but it would be nice if it 
followed the api.

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

>Comment By: Scott M Stark (starksm)
Date: 2001-12-28 16:30

Message:
Logged In: YES 
user_id=175228

Fixed using patch 495746 for 2.4.4.

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

Comment By: Larry Sanderson (lsanders)
Date: 2001-12-20 21:30

Message:
Logged In: YES 
user_id=379453

Oops... The previous comment referenced an https url.  Here 
is the one that does not require a login:

<A href="http://sourceforge.net/tracker/index.php?
func=detail&aid=495746&group_id=22866&atid=376687">http://so
urceforge.net/tracker/index.php?
func=detail&aid=495746&group_id=22866&atid=376687</A>

(I hope the html link works)

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

Comment By: Larry Sanderson (lsanders)
Date: 2001-12-20 21:25

Message:
Logged In: YES 
user_id=379453

I have submitted a patch for this bug at:
https://sourceforge.net/tracker/index.php?
func=detail&aid=495746&group_id=22866&atid=376687

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

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

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

Reply via email to