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
From golang-dev:
"Hi,
If you run this code http://play.golang.org/p/CjkzvJYpUi it will block forever on the
second time through the for loop. Change SetMaxIdleConns to 0 and it works.
Problem happens with either MySQL database driver, and with both db.Query()/Next/Close
and db.QueryRow().Scan(). Is it a bug? Could someone help me understand?
Thanks!
"
Reply:
"It's a known bug in Go 1.2, fixed in 1.3 via commit 8a7ac002f840."
Which is:
https://golang.org/cl/40410043
Maybe a candidate for Go 1.2.1?
The text was updated successfully, but these errors were encountered:
Okay for Go 1.2.1.
My reasoning is that people cannot easily make a copy of database/sql because other code
they want to use (the drivers) depends on using database/sql, so you'd have to fork
database/sql, database/sql/driver, and the actual driver, just to get a 1-line fix for a
bug that makes database/sql wedge.
The text was updated successfully, but these errors were encountered: