Skip to content

Commit 506416d

Browse files
authored
README: fix example for database/sql (#955)
1 parent 0126986 commit 506416d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ import (
342342
func main() {
343343
// dsn format: "user:password@addr?dbname"
344344
dsn := "[email protected]:3306?test"
345-
db, _ := sql.Open(dsn)
345+
db, _ := sql.Open("mysql", dsn)
346346
db.Close()
347347
}
348348
```

0 commit comments

Comments
 (0)