Skip to content

Commit c00cd65

Browse files
committed
Example conn string uses dbname instead of database
closes #864
1 parent 0b4a1ad commit c00cd65

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

stdlib/sql.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
//
1010
// Or from a keyword/value string.
1111
//
12-
// db, err := sql.Open("pgx", "user=postgres password=secret host=localhost port=5432 database=pgx_test sslmode=disable")
12+
// db, err := sql.Open("pgx", "user=postgres password=secret host=localhost port=5432 dbname=pgx_test sslmode=disable")
1313
// if err != nil {
1414
// return err
1515
// }

0 commit comments

Comments
 (0)