You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Andrus Adamchik (JIRA)" <ji...@apache.org> on 2013/09/23 17:02:02 UTC
[jira] [Closed] (CAY-1874) DB2 Procedure action ignores the first
result set
[ https://issues.apache.org/jira/browse/CAY-1874?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrus Adamchik closed CAY-1874.
--------------------------------
Resolution: Fixed
At some point we need to refactor this code per TODO in ProcedureAction:
// 09/23/2013: almost all adapters except Oracle (and maybe a few
// more?) are actually using the correct strategy, so making it a
// default in the superclass, and isolating hack to subclasses is
// probably a good idea
> DB2 Procedure action ignores the first result set
> -------------------------------------------------
>
> Key: CAY-1874
> URL: https://issues.apache.org/jira/browse/CAY-1874
> Project: Cayenne
> Issue Type: Bug
> Components: Core Library
> Affects Versions: 3.2M1
> Environment: DB2
> Reporter: Andrei Veprev
> Fix For: 3.1B3, 3.2M2
>
> Attachments: CAY-1874.patch
>
>
> Seems ProcedureAction ignores the first ResultSet after executing procedure call. The first call in the result processing is getMoreResults() which, as documentation states, "implicitly closes any current ResultSet". http://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html#getMoreResults()
> Patch is attached.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira