HHH-10761 : Propagating NULL for a stored-procedure named parameters will not work for Oracle if there are other named parameters

This commit is contained in:
Gail Badner 2016-06-21 16:46:09 -07:00
parent d5fa58e850
commit 5061741e52
1 changed files with 11 additions and 1 deletions

View File

@ -299,8 +299,18 @@ public abstract class AbstractParameterRegistrationImpl<T> implements ParameterR
procedureCall.getProcedureName(),
this
);
if ( this.procedureCall.getParameterStrategy() == ParameterStrategy.NAMED && canDoNameParameterBinding() ) {
((ProcedureParameterNamedBinder) typeToUse ).nullSafeSet(
statement,
null,
this.getName(),
session()
);
}
else {
typeToUse.nullSafeSet( statement, null, startIndex, session() );
}
}
else {
log.debugf(
"Stored procedure [%s] IN/INOUT parameter [%s] not bound and `passNulls` was set to false; assuming procedure defines default value",