Skip to content

[CSV-238] Escape quotes in CLOBs#39

Closed
luyseyal wants to merge 1 commit into
apache:masterfrom
luyseyal:bugfix/CSV-234-fix-not-escaping-embedded-quotes
Closed

[CSV-238] Escape quotes in CLOBs#39
luyseyal wants to merge 1 commit into
apache:masterfrom
luyseyal:bugfix/CSV-234-fix-not-escaping-embedded-quotes

Conversation

@luyseyal

@luyseyal luyseyal commented Feb 19, 2019

Copy link
Copy Markdown

(The bad coveralls report is from code merged to master this last weekend, not this patch)

This fixes Excel output by enabling the escaping of quotes in CLOBs.

Given a CLOB like:

Choose either
"Y" or "N"

The patch will transform it to:

Choose either
""Y"" or ""N""

@luyseyal

Copy link
Copy Markdown
Author

@garydgregory

@luyseyal

Copy link
Copy Markdown
Author

@britter Can you review this? Gary's code in master does fix the general idea behind outputting CLOBs but it doesn't escape quotes embedded in the CLOB string. This patch enables escaping the quotes so that Excel output will work (and probably others).

@luyseyal luyseyal force-pushed the bugfix/CSV-234-fix-not-escaping-embedded-quotes branch from 381b4a9 to ed49199 Compare February 25, 2019 18:28
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.6%) to 90.89% when pulling ed49199 on luyseyal:bugfix/CSV-234-fix-not-escaping-embedded-quotes into e24dc31 on apache:master.

@luyseyal luyseyal changed the title [CSV-234] Enable escaping of quotes in CLOBs [CSV-238] Enable escaping of quotes in CLOBs Feb 25, 2019
@garydgregory garydgregory changed the title [CSV-238] Enable escaping of quotes in CLOBs [CSV-238] Escape quotes in CLOBs Feb 27, 2019
@asfgit asfgit closed this in 480b90f Feb 27, 2019
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.

2 participants