mirror of
https://github.com/jackc/pgx.git
synced 2025-05-28 18:22:15 +00:00
Update doc.go
Fix undefined identifiers in example
This commit is contained in:
parent
655313b801
commit
8efdbc9345
2
doc.go
2
doc.go
@ -121,7 +121,7 @@ database/sql. The second is to use a pointer to a pointer.
|
||||
|
||||
var foo pgtype.Varchar
|
||||
var bar *string
|
||||
err := conn.QueryRow("select foo, bar from widgets where id=$1", 42).Scan(&a, &b)
|
||||
err := conn.QueryRow("select foo, bar from widgets where id=$1", 42).Scan(&foo, &bar)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user