I'm translating an OLD program from lib/pq to pgx, but when I copy the 
"Error Handling" code, I get:
./ambientProgram.go:164:16: db.PgError undefined (type *pgx.Conn has no 
field or method PgError) ./ambientProgram.go:210:18: db.PgError undefined 
(type *pgx.Conn has no field or method PgError)

I get the connection by:
db, err := pgx.Connect(context.Background(), connStr)

and pass it to:
func populatedb(macaddr string, db *pgx.Conn, endtime time.Time)

How do I get to the error stuff?

Thanks!

ref: https://github.com/jackc/pgx/issues/1102
https://github.com/jackc/pgx/wiki/Error-Handling

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/41d31af8-d053-40cb-8957-8112ce935ee3n%40googlegroups.com.

Reply via email to