StackOverflowError during sql query creation within AbstractQueryImpl.expandParameterLists method

Description

Steps to reproduce:

  1. create HQL query with 2 'in' clauses (like 'select from o where o.f in ( aram ) or o.f in ( aram1 )'

  2. set 'param1' value to be large list (around 10k entries)

  3. set 'param' value to be some non empty and non one element list

  4. execute query

  5. observe StackOverflowError

To reproduce the issue it is needed to ensure that values for 'param1' will be expanded first so that stack overflow will happen on next step during 'param' expansion.

Environment

None

Assignee

Unassigned

Reporter

Stanislav Bernatsky

Fix versions

None

Labels

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure