mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-06 19:36:03 +00:00
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 void prepare(CallableStatement statement, int startIndex) throws SQLExcep
|
||||
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…
x
Reference in New Issue
Block a user