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-13319]setParameter doesn't work in native Query if Query is already executed with different parameter value for collection type when new collection length is less than the previous #2814

Open
wants to merge 5 commits into
base: 5.2
Choose a base branch
from

Conversation

git-rbanerjee
Copy link

@git-rbanerjee git-rbanerjee commented Mar 14, 2019

When re using a native query with a Collection type param , its not removing the already expanded parameter from parameterBindingMap in expandListValuedParameters. For example first time the Collection had 3 values so it expanded to ids_0 , ids_1, ids_2 . Then next run it has two values so its just updating ids_0 , ids_1 not removing ids_2 from parameterBindingMap which is causing Caused by: org.hibernate.QueryException: Named parameter does not appear in Query: ids_2

@beikov beikov added the 5.2 label Jul 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants