I think I have a related problem. Trying to use IN statement in MySQL
@SqlQuery("select term from mydb.terms where id in ( <ids> )")
List<String> findAllTermsWhereIdIn(@BindIn("ids") List<Integer> termIds);
But it doesn't seam to rewrite the query.
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '<ids> )' at line 1 [statement:"select term from mydb.term where id in ( <ids> )", located:"select term from mydb.term where id in ( <ids> )", rewritten:"/* TermDAO.findAllTermsWhereIdIn */
select term from mydb.term where id in ( <ids> )", arguments:{ positional:{}, named:{__ids_88:204692,__ids_89:173399}, finder:[]}]
Shouldn't it rewrite it to smth like:
select term from mydb.term where id in ( :ids_0, :ids_1 )