Detection of JDBC support for RefCursors was returning false even for Oracle JDBC drivers supporting it

Description

Fixing uncovered an issue with the invocation of DatabaseMetaData.supportsRefCursors , following up with this to fix it.

Not classifying as a bug as was not included in any release yet - the previous reflective operation was masking the underlying problem; rather an improvement as the never versions of Oracle (tested JDBC driver 19.8.0.0) actually seem to support the feature correctly.

Older Oracle JDBC driver 12.2.0.1 reports to support RefCursors, but does not implement it correctly; so older versions will still need to be treated as not supporting this (as the previous versions of Hibernate ORM did).

Environment

None
Fixed

Assignee

Sanne Grinovero

Reporter

Sanne Grinovero

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Priority

Major
Configure