-
Notifications
You must be signed in to change notification settings - Fork 73
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
Backslashes in text fields are lost after backup and restore #25
Comments
@SeunMatt
But the strings with slashes are not being escaped properly. Please note the value of |
To export all types of characters properly in String type, I needed to do more escaping work - here is my code: private String getDataInsertStatement(String table) throws SQLException { |
@osteffl Thanks for sharing this! Your escaping approach is super helpful. |
Backslashes in String fields are lost after backup and restore.
Original text field content: "data\with\backslash";
mysql-backup4j produces an insert statement like this:
INSERT INTO [...] VALUES ('data\with\backslash')
After restore, the field contains the value "datawithbackslash". This is because MySQL requires backslashes in SQL to be escaped.
The text was updated successfully, but these errors were encountered: