aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/exp/sql
AgeCommit message (Collapse)Author
2012-01-19database/sql: move from exp/sqlBrad Fitzpatrick
R=golang-dev, r CC=golang-dev https://golang.org/cl/5536076
2012-01-19exp/sql: rename NullableString to NullString and allow its use as a parameterBrad Fitzpatrick
Prep for Issue 2699 R=rsc CC=golang-dev https://golang.org/cl/5536045
2012-01-17exp/sql: copy when scanning into []byte by defaultBrad Fitzpatrick
Fixes #2698 R=rsc CC=golang-dev https://golang.org/cl/5539060
2012-01-14doc: fix comments referring to removed API funcsShenghou Ma
The strconv package has removed Atob, AtoF{64,32} and Ftoa. R=golang-dev, r CC=golang-dev https://golang.org/cl/5540057
2012-01-13exp/sql: add time.Time supportBrad Fitzpatrick
Fixes #2694 R=golang-dev, r CC=golang-dev https://golang.org/cl/5541057
2012-01-13exp/sql: fix statement leakBrad Fitzpatrick
Also verified in external test suite that this fixes MySQL resource exhaustion problems, and also exposed a double-free bug in the gosqlite3 driver (where gosqlite3 either got lucky before, or was working around this bug) R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5544057
2012-01-12sql: fix potential corruption in QueryRow.Scan into a *[]byteBrad Fitzpatrick
Fixes #2622 R=golang-dev, adg CC=golang-dev https://golang.org/cl/5533077
2012-01-10exp/sql: close Rows on EOFBrad Fitzpatrick
Fixes #2624 R=rsc CC=golang-dev https://golang.org/cl/5530068
2011-12-15sql: add Rows.ColumnsBrad Fitzpatrick
Also, fix package name in error messages. Fixes #2453 R=rsc CC=golang-dev https://golang.org/cl/5483088
2011-12-13strconv: include package and function name in error stringsRob Pike
Fixes #2548. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5484062
2011-12-12sql: fix missing mutex unlock in an error caseBrad Fitzpatrick
Fixes #2542 R=golang-dev, r CC=golang-dev https://golang.org/cl/5483054
2011-12-08exp/sql: simplify some string conversions.David Symonds
R=bradfitz CC=golang-dev https://golang.org/cl/5451112
2011-12-05use new strconv APIRuss Cox
All but 3 cases (in gcimporter.go and hixie.go) are automatic conversions using gofix. No attempt is made to use the new Append functions even though there are definitely opportunities. R=golang-dev, gri CC=golang-dev https://golang.org/cl/5447069
2011-11-28sql: add Tx.Stmt to use an existing prepared stmt in a transactionBrad Fitzpatrick
R=rsc CC=golang-dev https://golang.org/cl/5433059
2011-11-25exp/sql/driver: Correct package name in comment.Benny Siegert
IIRC, package sql used to be called db. There was one occurrence of the old name in a comment. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5431075
2011-11-20sql: more driver docs & tests; no functional changesBrad Fitzpatrick
R=golang-dev, r CC=golang-dev https://golang.org/cl/5415055
2011-11-15exp/sql: NumInput() allow -1 to ignore checking.Yasuhiro Matsumoto
Some database driver can't get number of parameters. For example: http://support.microsoft.com/kb/240205/en-us So, added way to ignore checking number of parameters with return -1. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5376091
2011-11-15sql: document that for drivers, io.EOF means no more rowsBrad Fitzpatrick
This was used in the sql package + tests, but never documented. R=golang-dev, gri CC=golang-dev https://golang.org/cl/5372107
2011-11-14sql: add DB.Close, fix bugs, remove Execer on Driver (only Conn)Brad Fitzpatrick
R=rsc CC=golang-dev https://golang.org/cl/5372099
2011-11-04html,bzip2,sql: rename Error methods that return error to ErrGustavo Niemeyer
There are three classes of methods/functions called Error: a) The Error method in the just introduced error interface b) Error methods that create or report errors (http.Error, etc) c) Error methods that return errors previously associated with the receiver (Tokenizer.Error, rows.Error, etc). This CL introduces the convention that methods in case (c) should be named Err. The reasoning for the change is: - The change differentiates the two kinds of APIs based on names rather than just on signature, unloading Error a bit - Err is closer to the err variable name that is so commonly used with the intent of verifying an error - Err is shorter and thus more convenient to be used often on error verifications, such as in iterators following the convention of the sql package. R=bradfitz, rsc CC=golang-dev https://golang.org/cl/5327064
2011-11-02exp/sql: finish transactions, flesh out types, docsBrad Fitzpatrick
Fixes #2328 (float, bool) R=rsc, r CC=golang-dev https://golang.org/cl/5294067
2011-11-01src/pkg/[a-m]*: gofix -r error -force=errorRuss Cox
R=golang-dev, iant CC=golang-dev https://golang.org/cl/5322051
2011-10-27strconv: use better errors than os.EINVAL, os.ERANGERuss Cox
R=golang-dev, adg CC=golang-dev https://golang.org/cl/5327052
2011-10-13pkg: fix incorrect prints found by govetRobert Hencke
R=golang-dev, nigeltao CC=golang-dev https://golang.org/cl/5266041
2011-09-29exp/sql{,/driver}: new database packagesBrad Fitzpatrick
R=gustavo, rsc, borman, dave, kevlar, nigeltao, dvyukov, kardianos, fw, r, r, david.crawshaw CC=golang-dev https://golang.org/cl/4973055