Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

database/sql: does not allow "exporting" row data #2453

Closed
kardianos opened this issue Nov 12, 2011 · 3 comments
Closed

database/sql: does not allow "exporting" row data #2453

kardianos opened this issue Nov 12, 2011 · 3 comments
Assignees

Comments

@kardianos
Copy link
Contributor

@kardianos kardianos commented Nov 12, 2011

Before filing a bug, please check whether it has been fixed since
the latest release: run "hg pull", "hg update default", rebuild, and
retry
what you did to
reproduce the problem.  Thanks.

What steps will reproduce the problem?
1. Attempt to serialize/export row data in a generic method
2. May need to use the column names (ie for json field names) 

What is the expected output?
sql.Rows doesn't have a method to get the row column names, or
rather then Rows.Scan, Rows.Dump() (values []interface{}).

What do you see instead?
driver.Rows (which contain Columns() []string) is private.

Which compiler are you using (5g, 6g, 8g, gccgo)?
6g

Which operating system are you using?
linux

Which revision are you using?  (hg identify)
tip

Please provide any additional information below.
@adg
Copy link
Contributor

@adg adg commented Nov 14, 2011

Comment 1:

Owner changed to @bradfitz.

Status changed to Accepted.

@rsc
Copy link
Contributor

@rsc rsc commented Dec 9, 2011

Comment 2:

Labels changed: added priority-later, removed priority-medium.

@bradfitz
Copy link
Contributor

@bradfitz bradfitz commented Dec 15, 2011

Comment 3:

This issue was closed by revision ea51dd2.

Status changed to Fixed.

@mikioh mikioh changed the title exp/sql does not allow "exporting" row data database/sql: does not allow "exporting" row data Feb 18, 2015
@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants
You can’t perform that action at this time.