Direct copy from http://golang.org/src/pkg/database/sql/sql.go?s=1303:1396#L66 :)