From 61dc703927f68435bfcb109627728e56a5799310 Mon Sep 17 00:00:00 2001 From: namhq1989 Date: Fri, 3 Feb 2023 20:17:40 +0700 Subject: [PATCH] change driver name --- postgresql.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postgresql.go b/postgresql.go index 8c5d46b..3235d7e 100644 --- a/postgresql.go +++ b/postgresql.go @@ -31,7 +31,7 @@ func Connect(cfg Config, server string) (db *sql.DB, err error) { // connect if cfg.UseElasticAPM { - db, err = apmsql.Open("pgx", uri) + db, err = apmsql.Open("pgxv4", uri) } else { db, err = sql.Open("pgx", uri) }