go/src/database/sql
Charlie Vieth ff86b8b62f database/sql: allocate once when assigning a time.Time to a byte slice
Change convertAssignRows to use time.AppendFormat and a pre-allocated
buffer when assigning a time.Time to a byte slice. Previously, the
result of time.Format was converted to a byte slice which required
two allocations.

Change-Id: I19db5e4d295e882070f947eca318a4e33520cda1
Reviewed-on: https://go-review.googlesource.com/c/go/+/622597
Reviewed-by: Carlos Amedee <carlos@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
2024-10-29 11:38:05 +00:00
..
driver database/sql/driver: fix name in comment 2024-07-11 15:01:00 +00:00
convert.go database/sql: allocate once when assigning a time.Time to a byte slice 2024-10-29 11:38:05 +00:00
convert_test.go all: skip and fix various tests with -asan and -msan 2024-10-28 21:04:51 +00:00
ctxutil.go
doc.txt database/sql: fix typo in comment 2024-03-22 06:48:08 +00:00
example_cli_test.go all: fix some lint issues 2022-05-08 17:27:54 +00:00
example_service_test.go database/sql: add error check 2024-02-28 20:21:26 +00:00
example_test.go
fakedb_test.go database/sql: use slices to simplify the code 2024-04-01 12:38:07 +00:00
sql.go database/sql: rewrite Null[T].Value method, update doc for Null[T] 2024-10-21 18:42:47 +00:00
sql_test.go database/sql: rewrite Null[T].Value method, update doc for Null[T] 2024-10-21 18:42:47 +00:00