{"version":"1.0","title":"Rows.Scan() \u306b\u6e21\u3059\u5909\u6570\u306f\u30eb\u30fc\u30d7\u5916\u3067\u5ba3\u8a00\u3057\u305f\u65b9\u304c\u901f\u3044","author_url":"https://blog.hatena.ne.jp/methane/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmethane.hatenablog.jp%2Fentry%2F2025%2F04%2F23%2F142923\" title=\"Rows.Scan() \u306b\u6e21\u3059\u5909\u6570\u306f\u30eb\u30fc\u30d7\u5916\u3067\u5ba3\u8a00\u3057\u305f\u65b9\u304c\u901f\u3044 - methane\u306e\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","image_url":null,"blog_url":"https://methane.hatenablog.jp/","published":"2025-04-23 14:29:23","author_name":"methane","type":"rich","categories":["golang"],"blog_title":"methane\u306e\u30d6\u30ed\u30b0","height":"190","url":"https://methane.hatenablog.jp/entry/2025/04/23/142923","provider_name":"Hatena Blog","width":"100%","description":"go-mysql-driver \u306e\u30a2\u30ed\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u8abf\u67fb\u3057\u3066\u3044\u3066\u6c17\u3065\u3044\u305f\u5c0f\u30cd\u30bf\u3002 --- a/benchmark_test.go +++ b/benchmark_test.go @@ -423,9 +423,9 @@ func BenchmarkReceiveMassiveRows(b *testing.B) { b.Errorf(\"failed to select: %v\", err) return } + var i int + var s sql.RawBytes for rows.Next() { - var i int - var s sql.RawBytes err = rows.S\u2026"}