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

Issue 7880045: code review 7880045: database/sql: Add time.Time -> string/[]byte/RawBytes c...

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 9 months ago by julienschmidt
Modified:
11 years, 12 months ago
CC:
golang-codereviews
Visibility:
Public.

Description

database/sql: Add time.Time -> string/[]byte/RawBytes conversion This conversion is intentional. It behaves just like fmt.Print(time) since it makes use of the same String() method

Patch Set 1 #

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -0 lines) Patch
M src/pkg/database/sql/convert.go View 1 2 chunks +34 lines, -0 lines 0 comments Download
M src/pkg/database/sql/convert_test.go View 1 3 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 9
julienschmidt
Hello golang-dev@googlegroups.com (cc: bradfitz@golang.org, golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go
12 years, 9 months ago (2013-03-24 04:57:20 UTC) #1
julienschmidt
Alternatively the fmt.Stringer interface could be used to solve this more general. But currently time.Time ...
12 years, 9 months ago (2013-03-24 04:58:56 UTC) #2
rsc
Sorry, but the time for API changes has passed. Please remind us about this CL ...
12 years, 9 months ago (2013-03-25 20:27:53 UTC) #3
bradfitz
Julien, Now that Go 1.1 is out, did you still want this to go in?
12 years, 7 months ago (2013-06-05 22:25:28 UTC) #4
julienschmidt
I am not quite sure. The conversion from time.Time to other types should be added ...
12 years, 7 months ago (2013-06-05 23:00:22 UTC) #5
rsc
This bothers me. Why is time.Time special?
12 years, 7 months ago (2013-06-10 17:39:16 UTC) #6
julienschmidt
On 2013/06/10 17:39:16, rsc wrote: > This bothers me. Why is time.Time special? According to ...
12 years, 7 months ago (2013-06-10 19:07:20 UTC) #7
gobot
Replacing golang-dev with golang-codereviews.
12 years ago (2013-12-20 16:21:38 UTC) #8
bradfitz
11 years, 12 months ago (2014-01-14 21:39:16 UTC) #9
R=close

Feel free to re-open discussion if you're convinced this should go in, but I
think the supporting only time.Time -> time.Time is fine.  Then callers can
decide which string format they want and we don't have to decide and document.
Sign in to reply to this message.

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