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

Issue 5577054: code review 5577054: database/sql: convert SQL null values to []byte as nil. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 3 months ago by coopernurse
Modified:
12 years, 3 months ago
Reviewers:
CC:
golang-dev, bradfitz
Visibility:
Public.

Description

database/sql: convert SQL null values to []byte as nil. Also allow string values to scan into []byte. Fixes issue 2788.

Patch Set 1 #

Patch Set 2 : diff -r f583d41f68e5 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r f583d41f68e5 https://go.googlecode.com/hg/ #

Total comments: 5

Patch Set 4 : diff -r b78d387bd5c7 https://go.googlecode.com/hg/ #

Total comments: 1

Patch Set 5 : diff -r b78d387bd5c7 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -16 lines) Patch
M src/pkg/database/sql/convert.go View 1 2 chunks +9 lines, -0 lines 0 comments Download
M src/pkg/database/sql/sql.go View 1 2 3 4 3 chunks +18 lines, -16 lines 0 comments Download
M src/pkg/database/sql/sql_test.go View 1 2 3 1 chunk +28 lines, -0 lines 0 comments Download

Messages

Total messages: 7
coopernurse
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 3 months ago (2012-01-26 17:33:14 UTC) #1
bradfitz
http://codereview.appspot.com/5577054/diff/1002/src/pkg/database/sql/sql.go File src/pkg/database/sql/sql.go (right): http://codereview.appspot.com/5577054/diff/1002/src/pkg/database/sql/sql.go#newcode904 src/pkg/database/sql/sql.go:904: if !ok || *b == nil { I'd put ...
12 years, 3 months ago (2012-01-26 21:22:29 UTC) #2
coopernurse
Hello golang-dev@googlegroups.com, bradfitz@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 3 months ago (2012-01-26 22:29:29 UTC) #3
bradfitz
http://codereview.appspot.com/5577054/diff/7001/src/pkg/database/sql/sql.go File src/pkg/database/sql/sql.go (right): http://codereview.appspot.com/5577054/diff/7001/src/pkg/database/sql/sql.go#newcode975 src/pkg/database/sql/sql.go:975: for _, dp := range dest { can you ...
12 years, 3 months ago (2012-01-26 22:36:59 UTC) #4
coopernurse
Hello golang-dev@googlegroups.com, bradfitz@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 3 months ago (2012-01-26 22:46:07 UTC) #5
bradfitz
LGTM thanks! On Thu, Jan 26, 2012 at 2:46 PM, <jamespcooper@gmail.com> wrote: > Hello golang-dev@googlegroups.com, ...
12 years, 3 months ago (2012-01-26 23:12:41 UTC) #6
bradfitz
12 years, 3 months ago (2012-01-26 23:12:50 UTC) #7
*** Submitted as http://code.google.com/p/go/source/detail?r=a1b77ddd6056 ***

    database/sql: convert SQL null values to []byte as nil.

Also allow string values to scan into []byte.
Fixes issue 2788.

R=golang-dev, bradfitz
CC=golang-dev
http://codereview.appspot.com/5577054

Committer: Brad Fitzpatrick <bradfitz@golang.org>
Sign in to reply to this message.

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