Closed thjanssen closed 1 month ago
@thjanssen Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.
@thjanssen Thank you for signing the Contributor License Agreement!
When this is fixed, do you think you could backport it to version 3.2.x?
I intend to back port the fix if things work out as expected.
Thank you @thjanssen - merged to main development line and back ported to 3.2.x.
Fix handling of position INOUT parameters when extracting output parameters (issue 3460)
Added position information to
ProcedureParameter
class, set it inStoredProcedureAttributeSource.extractOutputParametersFrom(...)
, and use that position inStoredProcedureJpaQuery.extractOutputParameterValue
to get the result value. This change is based on the assumption thatNamedStoredProcedureQuery.parameters()
returns the parameters in the correct order. As far as I understand the rest of the code, it already makes this assumption when using positional parameters.