Skip to content

Commit 2f4f3b3

Browse files
authored
Merge pull request #135 from sansmoraxz/fix/test-pg-db-conn
use pgx driver for db connection
2 parents 1e0d140 + 0e60a69 commit 2f4f3b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/auth/postgresql/postgresql.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ func (a *Auth) Init(config any) error {
8585

8686
dsn := fmt.Sprintf("host=%s port=%d user=%s password=%s dbname=%s sslmode=%s",
8787
a.config.Dsn.Host, a.config.Dsn.Port, a.config.Dsn.LoginName, a.config.Dsn.LoginPassword, a.config.Dsn.Schema, a.config.Dsn.SslMode)
88-
sqlxDB, err := sqlx.Connect("postgres", dsn)
88+
sqlxDB, err := sqlx.Connect("pgx", dsn)
8989
if err != nil {
9090
return err
9191
}

0 commit comments

Comments
 (0)