I tried to generate the following SQL statement (test equivalence of characters, starting count from the right):
Gives an exception:
Caused by: java.lang.IllegalArgumentException: org.hibernate.QueryException: Not all named parameters have been set:  [select a.name
The text was updated successfully, but these errors were encountered:
Thanks for the update.
It does a better job, but I think I bump into another issue.
So, here is the status using the latest snapshot. From the following code:
I get the correct JPQL:
It is much more verbose but I can live with it.
Using LENGTH instead of CHAR_LENGTH, I have irrelevant results because LENGTH gives the length in bytes, not in characters, while in JPQL LENGTH is meant to count characters.
So, as long as querydsl is concerned, I think you can consider it as fixed.