Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HHH-18587 Implement Oracle array functions using set operations #8903

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

marschall
Copy link
Contributor

https://hibernate.atlassian.net/browse/HHH-18587

Implement the functions array_contains, array_includes and array_intersects using set operations on Oracle. This is done using the column_value pseudocolumn and the TABLE function. Similar to this

SELECT *
  FROM entity
 WHERE needle IN (SELECT column_value FROM TABLE(?))

With Oracle 23 we could also use

SELECT *
  FROM entity
 WHERE needle = ANY (SELECT column_value FROM TABLE(?))

But this wouldn't work in Oracle 19.

The _nullable variants keep calling the stored procedures.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license
and can be relicensed under the terms of the LGPL v2.1 license in the future at the maintainers' discretion.
For more information on licensing, please check here.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant