-
Notifications
You must be signed in to change notification settings - Fork 16
csv_quote_esc
Scott C Gray edited this page Feb 26, 2017
·
1 revision
csv_quote_esc
- Controls how quotes are escaped by 'csv' display style
When a field is output in the 'csv' display style and contains a quoting character or string (see $csv_quote), the value of this variable is used to "escape" the quote. When this variable is empty (the default), the default behavior is to double whatever the current quote is, for example:
1> values('Sally said, "Hello Scott!"', 10)
2> go --no-headers -m csv
"Sally said, ""Hello Scott!"",10
However, you may override this behavior with:
1> \set csv_quote_esc=\\
2> go --no-headers -m csv
"Sally said, \"Hello Scott!\",10