[ http://issues.apache.org/jira/browse/DERBY-1101?page=all ]
Daniel John Debrunner updated DERBY-1101:
-----------------------------------------
Summary: ResultSet.getHoldabilty will return incorrect value when the ResultSet is
obtained from a procedure call (was: ResultSet.getHoldabilty will return incorrect value
when the Statement changes it's holdability)
Description:
EmbedResultSet40.getHoldability returns the holdability of the statement returned by ResultSet.getStatement().
When a ResultSet is created by a procedure call, its holdability may not match the holdability
of the Statement that called the procedure, which is probably what ResultSet.getStatement()
should return.
This may not be exposed as a bug yet, but I think this method should be directly obtaining
the holdability of the ResultSet using the Activation.getResultSetHoldability() method, rather
than through a Statement. Seems a safer approach.
was:
EmbedResultSet40.getHoldability returns the holdability of the Statement that created the
ResultSet, but I think this can be changed by the application after the ResultSet has been
created.
I think this method should be obtaining the holdability of the ResultSet using the Activation.getResultSetHoldability()
method.
Priority: Minor (was: Major)
Statement's can't change their holdability, but I think there is a problem or potential problem
here.
> ResultSet.getHoldabilty will return incorrect value when the ResultSet is obtained from
a procedure call
> --------------------------------------------------------------------------------------------------------
>
> Key: DERBY-1101
> URL: http://issues.apache.org/jira/browse/DERBY-1101
> Project: Derby
> Type: Bug
> Components: JDBC
> Versions: 10.2.0.0
> Reporter: Daniel John Debrunner
> Priority: Minor
>
> EmbedResultSet40.getHoldability returns the holdability of the statement returned by
ResultSet.getStatement().
> When a ResultSet is created by a procedure call, its holdability may not match the holdability
of the Statement that called the procedure, which is probably what ResultSet.getStatement()
should return.
> This may not be exposed as a bug yet, but I think this method should be directly obtaining
the holdability of the ResultSet using the Activation.getResultSetHoldability() method, rather
than through a Statement. Seems a safer approach.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
|