-
Notifications
You must be signed in to change notification settings - Fork 862
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hibernate 5 issue - org.hibernate.exception.SQLGrammarException #1939
Comments
Could you provide the full SQL? |
This is the query generated:
I think it's something with the TOP parameter, because in hibernate 4.3 it won't appear the ? character within query log, instead will show the number I put in limit() method. |
This looks like an issue with Hibernate and not Querydsl. Check org.hibernate.dialect.SQLServerDialect on the rendering of the paging parameters. |
You're right. I changed to org.hibernate.dialect.SQLServer2012Dialect and the error stopped appearing. |
Great. |
When I use limit clause with JPAQuery it gives me the following error:
Here is a snippet of code I used:
I'm using: JBOSS EAP 7/Wildfly 10 With Hibernate 5.0.7/5.0.9 and QueryDSL JPA 4.1.2
JDBC-Driver: JTDS 1.3 for MSSQL Server
The text was updated successfully, but these errors were encountered: