-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
SQL containing escape '\'
as result of findAllByXXXContaining
fails on MySQL 8.0
#3216
Comments
You should turn off NO_BACKSLASH_ESCAPES at mysql server side. |
Oh , It works ! Thanks ! Is there any config to turn off this feature in JPA not in mysql? |
With my test with MySQL Server 5.7.44, no matter I assume your database is not real mysql but some other database use mysql protocol, If I'm correct you should report bug to its team. |
I start mysql process in docker.It's real mysql. |
You can test |
As @quaff already pointed out, this is a configuration setting outside of Spring Data. |
escape '\'
as result of findAllByXXXContaining
fails on MySQL 8.0
When I using findAllByXXXContaining() , jpa generate sql , and append "escape '' ", this makes sql exec failed.Is this a bug or feature ? How can I avoid this?
SpringBootVersion: 3.1.5
SpringDataJpaVersion: 3.1.5
JDK:jdk21
mysql:8.0
The text was updated successfully, but these errors were encountered: