You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Row.Scan into a *[]byte does a copy.
Rows.Scan into a *[]byte does NOT. (our original plan was speed)
for paranoia and consistency, Rows.Scan should also do a copy.
if the caller wants to minimize allocations, they can use a new named []byte type,
RawBytes
type RawBytes []byte
... and only Rows.Scan will permit that.
The text was updated successfully, but these errors were encountered:
mikioh
changed the title
exp/sql should copy into []byte by default; add RawBytes type for speed
database/sql: should copy into []byte by default; add RawBytes type for speed
Feb 18, 2015
The text was updated successfully, but these errors were encountered: