Closed
Description
Go 1.21 will fix race between Context cancel and sql.RawBytes
.
See golang/go#60304
It will be backported to Go 1.19.
We had implemented double buffering (#943) to workaround it. It increase memory usage and complexity.
After Go 1.19.10 containing this fix is released, let's remove the double buffering in go-mysql-driver v1.8.0.
P.S. We need to drop Go 1.18 support. It would violate our Go version support policy. But Go 1.21 will be released in August, before we release v1.8.0.