[
https://issues.apache.org/jira/browse/OPENJPA-3032?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18139422#comment-18139422
]
ASF subversion and git services commented on OPENJPA-3032:
----------------------------------------------------------
Commit edd6acbc8e251bbc8bd0491754da3d814abce191 in openjpa's branch
refs/heads/master from Richard Zowalla
[ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=edd6acbc8 ]
[OPENJPA-3032] Find stored procedures on Derby and call them on SQL Server
(#269)
* [OPENJPA-3032] Find stored procedures on Derby and call them on SQL Server
Stored procedures created with an unquoted mixed case name are stored
in upper case by Derby (and Oracle), so the metadata lookup now also
tries the name folded to upper case on databases folding unquoted
names to upper case, before the existing lower case fallback. A
procedure that is not found is no longer cached and the metadata
result sets are closed.
SQL Server reports procedures as name;version and parameters with a
leading @, and does not understand a bare CALL statement. The
SQLServerDictionary strips both and calls procedures with the JDBC
escape syntax {call name(?,...)}.
* [OPENJPA-3032] Return an unmodifiable list of stored procedure name candidates
> StoredProcedureQuery tests fail on Derby and SQL Server
> -------------------------------------------------------
>
> Key: OPENJPA-3032
> URL: https://issues.apache.org/jira/browse/OPENJPA-3032
> Project: OpenJPA
> Issue Type: Sub-task
> Reporter: Richard Zowalla
> Priority: Major
>
> The StoredProcedureQuery tests fail on Derby and on SQL Server and pass on
> PostgreSQL.
> On Derby the procedures are not found:
> {noformat}Rollback Procedure [GetEmpIdFNameLNameFromRS] not found{noformat}
> (also {{GetEmpASCFromRS}}, {{GetEmpOneFirstNameFromOut}}). This may be the
> TCK setup for Derby (Java procedures) rather than OpenJPA, to be checked
> first.
> On SQL Server the same tests only report "failed".
> Failing tests:
> * {{Client1}}: {{executeTest}}, {{executeUpdateOf*}}, {{getFirstResultTest}},
> {{getMaxResultsTest}}, {{getOutputParameterValue*}}, {{getParameter*}},
> {{getSingleResult*}}, {{setHintStringObjectTest}}, {{setParameter*}},
> {{setgetFlushModeTest}}, {{set/getLockMode*}},
> {{xmlOverridesNamedStoredProcedureQueryTest}},
> {{xmlOverridesSqlResultSetMappingAnnotationTest}}
> * {{Client2.setParameter*CalendarTemporalType*}}
> * {{Client3}} / {{Client}}: {{create*StoredProcedureQuery*}}
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)