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:
parent
d5fa58e850
commit
5061741e52
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue