Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Cannot perform right substring #475
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
Could you try again with the latest SNAPSHOT from here https://oss.sonatype.org/content/repositories/snapshots/ ?
The fourth option should work now.
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.