java - Spring named "IN" query producing error when given more than one entry -


i'm using spring's named queries access data , came upon issue. have rather long named query in spring data repo:

list<landscapelocationentity> findbyidcustomeridandidproductgroupandidproductidandidlocationidinandactiveflag(string customerid, string productgroup, string productid, list<integer> locationid, boolean activeflag); 

the query works fine long provide list<integer> 1 entry. there entry throw java.sql.sqlexception: borrow preparestatement pool failed.

this detailed error message

as can see in screenshot, call different actual query (locationid(?,?) vs. locationid(?)). have workaround executes queries separately that's not way want have in long term.

if need further information please tell me.

update: prove point removed other attributes , still same error:

shortened query

query now: list<landscapelocationentity> findbyidlocationidin(list<integer> locations);


Comments

Popular posts from this blog

android - ConstraintLayout: Realign baseline constraint in case if dependent view visibility was set to GONE -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -