Skip to content

Commit

Permalink
contrib/database/sql: fix sample code to pass by pointer to prevent n…
Browse files Browse the repository at this point in the history
…ot registered via sqltrace.Register (#1635)
  • Loading branch information
tsbkw committed Mar 16, 2023
1 parent 68bff5f commit 3895e95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/database/sql/sql.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// We start by telling the package which driver we will be using. For example, if we are using "github.com/lib/pq",
// we would do as follows:
//
// sqltrace.Register("pq", pq.Driver{})
// sqltrace.Register("pq", &pq.Driver{})
// db, err := sqltrace.Open("pq", "postgres://pqgotest:password@localhost...")
//
// The rest of our application would continue as usual, but with tracing enabled.
Expand Down

0 comments on commit 3895e95

Please sign in to comment.