Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Roll back to github.com/jackc/pgx/v4 #198

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 1 addition & 2 deletions error_translator.go
Expand Up @@ -3,9 +3,8 @@ package postgres
import (
"encoding/json"

"github.com/jackc/pgconn"
"gorm.io/gorm"

"github.com/jackc/pgx/v5/pgconn"
)

var errCodes = map[string]error{
Expand Down
5 changes: 3 additions & 2 deletions error_translator_test.go
Expand Up @@ -2,9 +2,10 @@ package postgres

import (
"errors"
"github.com/jackc/pgx/v5/pgconn"
"gorm.io/gorm"
"testing"

"github.com/jackc/pgconn"
"gorm.io/gorm"
)

func TestDialector_Translate(t *testing.T) {
Expand Down
7 changes: 6 additions & 1 deletion go.mod
Expand Up @@ -3,13 +3,18 @@ module gorm.io/driver/postgres
go 1.18

require (
github.com/jackc/pgx/v5 v5.3.1
github.com/jackc/pgconn v1.14.0
github.com/jackc/pgx/v4 v4.18.1
gorm.io/gorm v1.25.2-0.20230530020048-26663ab9bf55
)

require (
github.com/jackc/chunkreader/v2 v2.0.1 // indirect
github.com/jackc/pgio v1.0.0 // indirect
github.com/jackc/pgpassfile v1.0.0 // indirect
github.com/jackc/pgproto3/v2 v2.3.2 // indirect
github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect
github.com/jackc/pgtype v1.14.0 // indirect
github.com/jinzhu/inflection v1.0.0 // indirect
github.com/jinzhu/now v1.1.5 // indirect
golang.org/x/crypto v0.8.0 // indirect
Expand Down