Skip to content
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

1.7 版本仍未修复sql不对关键字转义的bug #5752

Closed
xbox1994 opened this issue Jul 26, 2023 · 3 comments
Closed

1.7 版本仍未修复sql不对关键字转义的bug #5752

xbox1994 opened this issue Jul 26, 2023 · 3 comments
Assignees
Labels
good first issue Good for newcomers type: bug Category issues or prs related to bug.

Comments

@xbox1994
Copy link

xbox1994 commented Jul 26, 2023

1.5.2是好的,1.6.1和1.7.0报错,看1.7已经合了#5307 , 但目前还是报错

org.springframework.jdbc.BadSqlGrammarException:
### Error updating database.  Cause: java.sql.SQLSyntaxErrorException: 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 'usage, warehouse_code FROM borrow WHERE (id) in ( (937) )' at line 1
@xbox1994
Copy link
Author

image

@funky-eyes
Copy link
Contributor

debug BaseTransactionalExecutor#buildTableRecords 519行看下selectSQLJoin的tostring内容

@funky-eyes
Copy link
Contributor

image
这个地方将插入列的转义符去掉了,这应该是个bug,临时解决方案就是将ONLY_CARE_UPDATE_COLUMNS改为false

@funky-eyes funky-eyes added good first issue Good for newcomers type: bug Category issues or prs related to bug. labels Jul 26, 2023
@funky-eyes funky-eyes self-assigned this Aug 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers type: bug Category issues or prs related to bug.
Projects
None yet
Development

No branches or pull requests

3 participants