alibaba / innodb-java-reader

A library and command-line tool to access MySQL InnoDB data file directly in Java
Apache License 2.0
462 stars 115 forks source link

Missing quotation of field values #4

Closed ajurcik closed 4 years ago

ajurcik commented 4 years ago

When dumping table data to a file field values can't be quoted. This becomes an issue when a string-like, e.g., VARCHAR, value contains chars that are used as a delimiter. When a CSV reader reads such a value it splits it into two or more false columns. Therefore a CSV reader encounters an unexpectedly higher count of columns.

ajurcik commented 4 years ago

I created #5 in order to address the issue.

neoremind commented 4 years ago

Good catch! Thanks for your contribution @ajurcik 😄 I addressed some comments in the PR.