-
-
Notifications
You must be signed in to change notification settings - Fork 264
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
Entity property called desc used with query order by desc generates bad sql #3433
Comments
Can you change your field name and add a @Column(name="desc")
public String description;
Looking at the create table DDL, it almost looks like you are wanting to use quoted identifiers like |
Yes, I am currently avoiding it by modifying the field name |
rbygrave
changed the title
if mysql table field has desc, CQueryBuilder return bad sql
Entity property called desc used with query order by desc generates bad sql
Jul 3, 2024
rbygrave
added a commit
that referenced
this issue
Jul 3, 2024
rbygrave
added a commit
that referenced
this issue
Jul 8, 2024
…me isn't widely supported by other databases
rbygrave
added a commit
that referenced
this issue
Jul 8, 2024
…me isn't widely supported by other databases
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected behavior
build sql is
Actual behavior
build sql is
Steps to reproduce
mysql table sql
pom.xml
bean java code
test code
Runtime screenshot
The text was updated successfully, but these errors were encountered: