I know this isn't a PoolMan list, but this is the only place I know
where PoolMan users seem to hang out.  Please forgive this off-topic
post.

I've downgraded to the last stable version, PoolMan 2.04, and the
problems I was having with 2.1b1 has gone away.

Now, I'm hitting a bug that can be found in both the 2.04 and 2.1:  the
ResultSet that PoolMan returns, an instance of PoolManResultSet, always
returns true when you call first() and last().  These functions are
supposed to return false if there are no results in the set.  As a
result, trying to do a get on the row produces an IndexOutOfBoundsError.

I checked the source code and found:

    public boolean last() throws SQLException {

        if (this.scrollableType == TYPE_FORWARD_ONLY)
            throw new SQLException("Invalid method call for ResultSet
type TYPE_FORWARD_ONLY");
        clearUpdates();
        this.pos = rowlist.size();
        return true;
    }

    public boolean first() throws SQLException {
        if (this.scrollableType == TYPE_FORWARD_ONLY)
            throw new SQLException("Invalid method call for this
ResultSet type TYPE_FORWARD_ONLY");
        clearUpdates();
        this.pos = 1;
        return true;
    }


I'm amazed that nobody has stumbled across this before.  Am I
hallucinating?  Is everyone else somehow getting some other
implementation of ResultSet?  (How?!)

Help!
-Mark

P/S - So what other connection managers are there?  Anyone have
experience with the one in Avalon?



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to