Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
SQL 'IN' clause fails with Empty Set #1003
I have found that the following code causes an illegal argument exception:
SQLQuery q = ...
AbstractSQLQuery.class - 357: throw new IllegalArgumentException("Expected " + objects.size() + " paths, but got " + constantPaths.size());
In this case, objects.size() = 0 and constantPaths.size() = 1
The prepared statement supplies an empty list ('where table.col in ()') but the setParameters method still expects a parameter for the 'in' list.