Brad Fitzpatrick
6bdd791dec
database/sql: remove Into from ScannerInto/ScanInto
...
Also fix a doc error.
Fixes #2843
R=golang-dev, r, rsc
CC=golang-dev
https://golang.org/cl/5653050
2012-02-10 10:20:49 +11:00
Andrew Pritchard
cc39bb9068
database/sql: treat pointers as nullable types like encoding/json
...
- convert from nil pointers to the nil interface{}
- dereference non-nil pointers
- convert from nil interface{}s to nil pointers
- allocate pointers for non-nil interface{}s
- tests for all of the above
R=golang-dev, bradfitz, rsc, rogpeppe
CC=golang-dev
https://golang.org/cl/5630052
2012-02-08 17:14:15 +11:00
Brad Fitzpatrick
9c060b8d60
database/sql: permit scanning into interface{}
...
See thread http://goo.gl/7zzzU for background.
R=rsc
CC=golang-dev
https://golang.org/cl/5624051
2012-02-06 10:06:22 -08:00
James P. Cooper
2a22f35598
database/sql: convert SQL null values to []byte as nil.
...
Also allow string values to scan into []byte.
Fixes #2788 .
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5577054
2012-01-26 15:12:48 -08:00
Brad Fitzpatrick
7fc4c07172
database/sql: move from exp/sql
...
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5536076
2012-01-19 16:04:26 -08:00