Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
database/sql: Scanner.Scan requires bytes to be copied #24492
Its possible this is a doc change to sql.Scanner.Scan to reflect the expectations of sql.Scanner.Scan; it would be slightly nicer to copy src byte slices before passing them to sql.Scanner.Scan to avoid such surprises.
What version of Go are you using (
This is a potential fix, I'm happy to put up a PR if we like it.
This adopts the approach of making the code behave the same as the later cases, e.g.: