Calling the wrong method inside SessionDelegatorBaseImpl#createStoredProcedureQuery

Description

The SessionDelegatorBaseImpl#createStoredProcedureQuery method calls delegate.createNamedStoredProcedureQuery but we expect delegate.createStoredProcedureQuery call.
Line 620 https://github.com/hibernate/hibernate-orm/blob/5.3.7/hibernate-core/src/main/java/org/hibernate/engine/spi/SessionDelegatorBaseImpl.java
So we catch IllegalArgumentException

We have a wrapper on SessionDelegatorBaseImpl. So we just override this method. But it need to be fixed.

Environment

None

Assignee

Andrea Boriero

Reporter

Ruslan Aysin

Fix versions

Labels

None

backPortable

Backport?

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Minor
Configure