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,7 +299,17 @@ public abstract class AbstractParameterRegistrationImpl<T> implements ParameterR
procedureCall.getProcedureName(),
this
);
typeToUse.nullSafeSet( statement, null, startIndex, session() );
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(