You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "B.J. Reed (JIRA)" <ji...@apache.org> on 2009/02/10 16:05:09 UTC

[jira] Updated: (OPENJPA-917) stored procedures throw InvalidStateException when using getSingleResult() or getResultList()

     [ https://issues.apache.org/jira/browse/OPENJPA-917?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

B.J. Reed updated OPENJPA-917:
------------------------------

    Attachment: OPENJPA-917.patch

This patch updates QueryImpl.java to bypass the InvalidStateException when a native query is used.  Also included is a JUnit test case that creates / loads / uses / drops a Derby stored procedure.  This patch was created on the openjpa 1.2.x branch and should also be applied and verified on trunk.

This fix does not fix the case where returning objects from stored procedures is not working properly - a new JIRA will be opened for this improvement

> stored procedures throw InvalidStateException when using getSingleResult() or getResultList()
> ---------------------------------------------------------------------------------------------
>
>                 Key: OPENJPA-917
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-917
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: query
>    Affects Versions: 1.2.0
>            Reporter: B.J. Reed
>             Fix For: 1.2.0
>
>         Attachments: OPENJPA-917.patch
>
>
> Currently, org.apache.openjpa.persistence.QueryImpl throws an InvalidStateException when any stored procedure is called.  The code needs to be updated to allow native queries to continue without the exception.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.