Hi,
  On trunk version, JPQL query accepts empty list for IN parameter.
  Following pass:
        public void testEmptyInExpression() {
                String jpql = "select o from Book o where o.ISBN in (:ids)";
                List<String> ids = new ArrayList<String>();
                assertTrue(_em.createQuery(jpql).setParameter("ids",
ids).getResultList().isEmpty());
        }

  For further investigation, please post
  1. The query string
  2. Exact way of setting the IN parameter values
  3. Error stack


-----
Pinaki Poddar
Chair, Apache OpenJPA Project
--
View this message in context: 
http://openjpa.208410.n2.nabble.com/illogical-java-lang-IllegalArgumentException-Input-parameter-ids-is-empty-tp6716202p6717297.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Reply via email to