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

"Insert" export and binary blobs #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

RLejolivet
Copy link

While trying to export a Firebird database to MySQL by using an SQL export ("Insert"), I found the binary blobs were not exported properly. Most notably, the null-bytes don't play too well with the "string" container.

This change replaces the string escaping for all kinds of strings in the SQL export to add a few more character escapes (heavily influenced by http://dev.mysql.com/doc/refman/5.7/en/string-literals.html since MySQL is my target for those exports).

Note : a similar change may be needed for CSV export. Also, C++ isn't necessarily my most used language, code style/improvements welcome ! :)

hempalex pushed a commit to hempalex/fbexport that referenced this pull request Feb 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant