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

Issue 6258045: code review 6258045: database/sql: use driver.ColumnConverter everywhere con... (Closed)

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

Description

database/sql: use driver.ColumnConverter everywhere consistently It was only being used for (*Stmt).Exec, not Query, and not for the same two methods on *DB. This unifies (*Stmt).Exec's old inline code into the old subsetArgs function, renaming it in the process (changing the old word "subset" to "driver", mostly converted earlier) Fixes issue 3640

Patch Set 1 #

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

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

Total comments: 1

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -72 lines) Patch
M src/pkg/database/sql/convert.go View 1 2 3 1 chunk +50 lines, -8 lines 0 comments Download
M src/pkg/database/sql/fakedb_test.go View 1 3 chunks +27 lines, -2 lines 0 comments Download
M src/pkg/database/sql/sql.go View 1 8 chunks +33 lines, -60 lines 0 comments Download
M src/pkg/database/sql/sql_test.go View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 6
bradfitz
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg
12 years, 11 months ago (2012-05-24 20:40:11 UTC) #1
rsc
LGTM http://codereview.appspot.com/6258045/diff/5001/src/pkg/database/sql/convert.go File src/pkg/database/sql/convert.go (right): http://codereview.appspot.com/6258045/diff/5001/src/pkg/database/sql/convert.go#newcode18 src/pkg/database/sql/convert.go:18: // Stmt.Query into driver subset Values. s/subset //
12 years, 10 months ago (2012-05-29 16:30:10 UTC) #2
bradfitz
*** Submitted as http://code.google.com/p/go/source/detail?r=69285ecd63e9 *** database/sql: use driver.ColumnConverter everywhere consistently It was only being used ...
12 years, 10 months ago (2012-05-29 18:09:19 UTC) #3
tve_rightscale.com
Pardon my ignorance, but why has this fix not been included in Go 1.0.3? On ...
12 years, 3 months ago (2012-12-27 01:57:57 UTC) #4
minux1
On Thu, Dec 27, 2012 at 9:57 AM, <tve@rightscale.com> wrote: > Pardon my ignorance, but ...
12 years, 3 months ago (2012-12-27 17:23:22 UTC) #5
tve_rightscale.com
12 years, 3 months ago (2012-12-27 18:45:27 UTC) #6
Interesting. I'm new to Go and I'm finding that after 2 days of poking 
around I already have to patch the distro because of a bug that was fixed 
several months before the release I installed was cut but wasn't included. 
That doesn't sound great. (Yes, I'm having a good experience otherwise :-).

So, how does one ask for this fix to be included into the next release? The 
reason I hit this problem is that database/sql's (*Stmt).Query is broken 
for drivers that define a ColumnConverter. I'm using 
gocql https://github.com/tux21b/gocql which is unusable without the fix.

BTW, what is the recommended way to patch a package like database/sql 
locally without installing the whole Go world from source?

On Thursday, December 27, 2012 9:23:01 AM UTC-8, minux wrote:
>
>
> On Thu, Dec 27, 2012 at 9:57 AM, <t...@rightscale.com <javascript:>>wrote:
>
>> Pardon my ignorance, but why has this fix not been included in Go 1.0.3?
>>
> FTR, it is not included in go 1.0.2.
> the reason is that the changes is too big to include in a point release, 
> and
> nobody explicitly ask for it.
>
> search "69285ecd63e9" here:
> https://codereview.appspot.com/6279048/diff/25005/go102
>  
Sign in to reply to this message.

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