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

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -