diff --git a/hibernate-core/src/main/java/org/hibernate/procedure/internal/ProcedureCallImpl.java b/hibernate-core/src/main/java/org/hibernate/procedure/internal/ProcedureCallImpl.java index b4459d7b23..848bd46617 100644 --- a/hibernate-core/src/main/java/org/hibernate/procedure/internal/ProcedureCallImpl.java +++ b/hibernate-core/src/main/java/org/hibernate/procedure/internal/ProcedureCallImpl.java @@ -306,7 +306,7 @@ public class ProcedureCallImpl extends AbstractBasicQueryContractImpl implements if ( parameterStrategy == ParameterStrategy.POSITIONAL ) { throw new QueryException( "Cannot mix named and positional parameters" ); } - if ( parameterStrategy == null ) { + if ( parameterStrategy == ParameterStrategy.UNKNOWN ) { // protect to only do this check once final ExtractedDatabaseMetaData databaseMetaData = getSession().getTransactionCoordinator() .getJdbcCoordinator()