Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1094)

Issue 86980044: code review 86980044: encoding/csv: Don't need to enclose double quotes of em...

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years ago by importre
Modified:
9 years, 6 months ago
CC:
golang-codereviews, iant
Visibility:
Public.

Description

encoding/csv: Don't need to enclose double quotes of empty fields rfc4180 # 5 says that > If fields are not enclosed with double quotes, then > double quotes may not appear inside the fields. Google Drive and MS Excel also don't have double quotes of empty field. I think it's reasonable. Fixes issue 7586.

Patch Set 1 #

Patch Set 2 : diff -r b3405f9c2e32 https://code.google.com/p/go/ #

Patch Set 3 : diff -r 63408464ba37 https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -2 lines) Patch
M src/pkg/encoding/csv/writer.go View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/encoding/csv/writer_test.go View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 10
importre
Hello golang-codereviews@googlegroups.com (cc: golang-codereviews@googlegroups.com, iant@golang.org), I'd like you to review this change to https://code.google.com/p/go/
10 years ago (2014-04-14 00:59:56 UTC) #1
bradfitz
Too late for Go 1.3. We're in critical fixes-only mode now. Please ping this thread ...
10 years ago (2014-04-14 20:09:02 UTC) #2
importre
On 2014/04/14 20:09:02, bradfitz wrote: > Too late for Go 1.3. We're in critical fixes-only ...
10 years ago (2014-04-14 22:54:56 UTC) #3
bradfitz
R=close Until Go 1.4.
10 years ago (2014-04-14 23:48:06 UTC) #4
adg
Now would be a good time to revisit this.
9 years, 9 months ago (2014-08-07 05:08:04 UTC) #5
rsc
It seems to me that encoding/csv is emitting perfectly valid CSV already. I am inclined ...
9 years, 7 months ago (2014-09-15 16:25:27 UTC) #6
biggernoise
On 2014/09/15 16:25:27, rsc wrote: > It seems to me that encoding/csv is emitting perfectly ...
9 years, 6 months ago (2014-10-20 21:20:31 UTC) #7
bradfitz
What does this have to do with Postgres or integers? An empty string isn't a ...
9 years, 6 months ago (2014-10-23 22:15:19 UTC) #8
biggernoise
TL;DR: The relationship between this issue and Postgres is that I cannot use the files ...
9 years, 6 months ago (2014-10-24 00:08:47 UTC) #9
rsc
9 years, 6 months ago (2014-10-24 02:04:20 UTC) #10
On Thu, Oct 23, 2014 at 8:08 PM, <biggernoise@gmail.com> wrote:

> TL;DR: The relationship between this issue and Postgres is that I cannot
> use the files generated by encoding/csv with Postgres's bulk load
> command (COPY FROM).  PG treats empty quoted strings as empty strings
> and will not convert these to NULL.  Fields that are simply missing are
> treated as NULL.
>

Thank you for this explanation. See https://codereview.appspot.com/164760043
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b